tracers: queue-levels: Fix analysis script if only a single plot should be created

This commit is contained in:
Sebastian Dröge 2022-07-21 12:22:54 +03:00
parent a45443251b
commit 7d666ce517

View file

@ -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')