mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-12 02:22:35 +00:00
Use plt.get_cmap instead of plt.colormaps
This commit is contained in:
committed by
David Peter
parent
a3eee514ed
commit
7684efdd2d
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user