From 9184dd12715b225347f2cd5dff4a967f8a517fda Mon Sep 17 00:00:00 2001 From: Markus Koller Date: Thu, 2 Mar 2023 16:35:47 +0100 Subject: [PATCH] Update csv_threading.py --- src/csv_threading.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/csv_threading.py b/src/csv_threading.py index 2a111d2..0dc7552 100644 --- a/src/csv_threading.py +++ b/src/csv_threading.py @@ -244,6 +244,7 @@ def plot_field_sequence(array, width, height): # create plot of fixed size (pix # plot rotation rate plot = axes[3] plot.plot(t, new_array[:, 4], linestyle='solid', marker='.') # plot data + plot.set_title("Abs. Rotation Rate", size=10) # set subplot title (e.g. "X-Axis") # set ylim of magnetic field axis to same value ylim_mag = ([min(axes[0].get_ylim()), max(axes[0].get_ylim()), min(axes[1].get_ylim()), max(axes[1].get_ylim()), @@ -252,7 +253,7 @@ def plot_field_sequence(array, width, height): # create plot of fixed size (pix axes[0].set_ylim(min(ylim_mag), max(ylim_mag)) # set shared axis labels: - axes[2].set_xlabel("Time [s])") + axes[3].set_xlabel("Time [s]") axes[1].set_ylabel("Magnetic Field [\u03BCT]") axes[3].set_ylabel("Rate [°/s]")