Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-07-21 12:22:54 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-07-21 12:26:22 +0300
commit7d666ce5175f15dbfce9ff34e2e8e6205b9aab4f (patch)
tree393fe0c0de47d50ec82c54aa9893c21a3628138d /utils/tracers
parenta45443251b0290b279ebf20b252305c6d67fbb9b (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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/tracers/scripts/queue_levels.py b/utils/tracers/scripts/queue_levels.py
index 654a81ded..d27dbadf6 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')