Fix long labels being cut off

This commit is contained in:
Serpent7776 authored and David Peter committed 2024-03-14 08:26:35 +01:00
1 parent 5c9d7a8b1e
commit 836d1730b5
1 file changed
+1
+1
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))]