mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-09 10:45:27 +00:00
tracers: queue-levels: Fix analysis script if only a single plot should be created
This commit is contained in:
parent
a45443251b
commit
7d666ce517
1 changed files with 3 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue