From 7684efdd2dc342f4671be7c6a0fc75bc4054bf96 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Sun, 16 Apr 2023 16:06:47 -0400 Subject: [PATCH] Use plt.get_cmap instead of plt.colormaps --- scripts/plot_whisker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/plot_whisker.py b/scripts/plot_whisker.py index e76771e..701078a 100755 --- a/scripts/plot_whisker.py +++ b/scripts/plot_whisker.py @@ -34,7 +34,7 @@ else: times = [b["times"] for b in results] boxplot = plt.boxplot(times, vert=True, patch_artist=True) -cmap = plt.colormaps["rainbow"] +cmap = plt.get_cmap("rainbow") colors = [cmap(val / len(times)) for val in range(len(times))] for patch, color in zip(boxplot["boxes"], colors):