Skip to content

Commit

Permalink
Merge pull request #74 from MOchiara/chiara-patch-20
Browse files Browse the repository at this point in the history
[FIX] Consistent font size in demo + no error text for legend i…
  • Loading branch information
MOchiara authored Nov 5, 2024
2 parents 4586b6c + e1a4547 commit 7e3c683
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions glidertest/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1225,12 +1225,10 @@ def plot_combined_velocity_profiles(ds_out_dives, ds_out_climbs):
w_upper_climbs = ds_out_climbs.w_upper.values * conv_factor

fig, ax = plt.subplots(1, 1, figsize=(4.8, 4.8))



ax.xaxis.label.set_size(14)
ax.yaxis.label.set_size(14)
ax.tick_params(axis='both', which='major', labelsize=14)
ax.legend(fontsize=14)

# Plot dives
ax.fill_betweenx(zgrid_dives, w_lower_dives, w_upper_dives, color='black', alpha=0.3)
Expand All @@ -1245,8 +1243,8 @@ def plot_combined_velocity_profiles(ds_out_dives, ds_out_climbs):
ax.set_xlabel('Vertical Velocity w (cm s$^{-1}$)')
ax.set_ylabel('Depth (m)')
ax.set_ylim(top=0, bottom=1000) # Set y-limit maximum to zero
ax.legend()
# ax.set_title('Combined Vertical Velocity Profiles')
ax.legend(fontsize=14)
#ax.set_title('Combined Vertical Velocity Profiles')

ax.set_xlim(-1, 1.5)
ax.set_xticks([-1, -0.5, 0, 0.5, 1.0, 1.5])
Expand Down
8 changes: 4 additions & 4 deletions notebooks/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"id": "d22b9ca5",
"metadata": {},
"source": [
"# Basic statistics of dataset"
"### Basic statistics of dataset"
]
},
{
Expand Down Expand Up @@ -206,7 +206,7 @@
"id": "34dd4862-c730-49f8-973b-f533407c9e79",
"metadata": {},
"source": [
"## Check if the profile number was assigned well \n",
"### Check if the profile number was assigned well \n",
"\n",
"We want to check if the profile number is consistently increasing or not.\n",
"When using pyglider to assign the profile, there can be some issues if the correct pressure and time threshold is not chosen.\n",
Expand Down Expand Up @@ -457,7 +457,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -471,7 +471,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 7e3c683

Please sign in to comment.