From 1a2b4bca130c301383bbf58dc71230ed0221f661 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Tue, 8 Nov 2022 09:15:06 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- mikes_psp_tutorial.py | 3 +-- mikes_psp_tutorial_cdflib.py | 14 +++----------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/mikes_psp_tutorial.py b/mikes_psp_tutorial.py index 2c299e9..a73afd4 100644 --- a/mikes_psp_tutorial.py +++ b/mikes_psp_tutorial.py @@ -25,5 +25,4 @@ fig, ax = plt.subplots() ax.plot(times, dens_data.y) -plt.show() -pass \ No newline at end of file +plt.show() \ No newline at end of file diff --git a/mikes_psp_tutorial_cdflib.py b/mikes_psp_tutorial_cdflib.py index a27fcde..2822615 100644 --- a/mikes_psp_tutorial_cdflib.py +++ b/mikes_psp_tutorial_cdflib.py @@ -24,17 +24,9 @@ ax[1].plot(time, cdf.varget('VEL_RTN_SUN')[:, i], label=f"$V_{{{component}}}$") ax[2].plot(time, mag_vel, label='|V|') -ax[0].set( - title=f'PSP SWP SPI data from {load_date.date()}', - ylabel=f'$cm^{3}$' -) -ax[1].set( - ylabel=f'km/s' -) -ax[-1].set( - xlabel='Time', - ylabel=f'km/s' -) +ax[0].set(title=f'PSP SWP SPI data from {load_date.date()}', ylabel='$cm^3$') +ax[1].set(ylabel='km/s') +ax[-1].set(xlabel='Time', ylabel='km/s') ax[1].legend() plt.tight_layout() plt.show() \ No newline at end of file