Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions mikes_psp_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@

fig, ax = plt.subplots()
ax.plot(times, dens_data.y)
plt.show()
pass
plt.show()
14 changes: 3 additions & 11 deletions mikes_psp_tutorial_cdflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Comment on lines -27 to +29
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 27-37 refactored with the following changes:

ax[1].legend()
plt.tight_layout()
plt.show()