summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerpent7776 <Serpent7776@gmail.com>2024-03-13 21:26:57 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2024-03-14 08:26:35 +0100
commit836d1730b5fe0725d03c629952539d9e3fab4cdb (patch)
treee57ac85005639e980ba4dba82a86169b33f65fe1
parent5c9d7a8b1ee608838e360755aa2e378bce0eb286 (diff)
Fix long labels being cut off
-rwxr-xr-xscripts/plot_whisker.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/plot_whisker.py b/scripts/plot_whisker.py
index 044f84b..ef34597 100755
--- a/scripts/plot_whisker.py
+++ b/scripts/plot_whisker.py
@@ -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))]