Fix long labels being cut off

This commit is contained in:
Serpent7776 2024-03-13 21:26:57 +01:00 committed by David Peter
parent 5c9d7a8b1e
commit 836d1730b5

View File

@ -38,6 +38,7 @@ indices = sorted(range(len(labels)), key=lambda k: medians[k])
labels = [labels[i] for i in indices]
times = [times[i] for i in indices]
plt.figure(figsize=(10, 6), constrained_layout=True)
boxplot = plt.boxplot(times, vert=True, patch_artist=True)
cmap = plt.get_cmap("rainbow")
colors = [cmap(val / len(times)) for val in range(len(times))]