From a3eee514eddf280124976bb5041f6feeced086e0 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Tue, 28 Mar 2023 13:56:36 -0400 Subject: [PATCH] Fix get_cmap MatplotlibDeprecationWarning --- 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 81d6e35..e76771e 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.cm.get_cmap("rainbow") +cmap = plt.colormaps["rainbow"] colors = [cmap(val / len(times)) for val in range(len(times))] for patch, color in zip(boxplot["boxes"], colors):