forked from zietzm/Helmholtz_Test_Bench
Update csv_threading.py
This commit is contained in:
@@ -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]")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user