diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-07-21 12:22:54 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-07-21 12:26:22 +0300 |
commit | 7d666ce5175f15dbfce9ff34e2e8e6205b9aab4f (patch) | |
tree | 393fe0c0de47d50ec82c54aa9893c21a3628138d /utils/tracers | |
parent | a45443251b0290b279ebf20b252305c6d67fbb9b (diff) |
tracers: queue-levels: Fix analysis script if only a single plot should be created
Diffstat (limited to 'utils/tracers')
-rw-r--r-- | utils/tracers/scripts/queue_levels.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/tracers/scripts/queue_levels.py b/utils/tracers/scripts/queue_levels.py index 654a81de..d27dbadf 100644 --- a/utils/tracers/scripts/queue_levels.py +++ b/utils/tracers/scripts/queue_levels.py @@ -76,6 +76,9 @@ if num_plots == 0: axes_names.append("time (s)") fig, axes = plt.subplots(num_plots, sharex=True) +if num_plots == 1: + axes = [axes] + axes[0].set_xlabel("wallclock (s)") axes[0].set_ylabel(axes_names[0]) axes[0].tick_params(axis='y') |