Skip to content
Myr

Fix get_cmap MatplotlibDeprecationWarning

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nicolas van Kempen · committed by David Peter · parent ccda6c4 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:scripts/plot_whisker.py+1 added-1 removed
32 unmodified lines
33 labels = [b["command"] for b in results]34times = [b["times"] for b in results]3536boxplot = plt.boxplot(times, vert=True, patch_artist=True)37cmap = plt.cm.get_cmap("rainbow")37cmap = plt.colormaps["rainbow"]38colors = [cmap(val / len(times)) for val in range(len(times))]3940for patch, color in zip(boxplot["boxes"], colors):41 patch.set_facecolor(color)
10 unmodified lines