Skip to content

Commit

Permalink
Merge pull request #137 from callumrollo/MOchiara-patch-9
Browse files Browse the repository at this point in the history
[FIX] Allow to call the ax and make changes to it
  • Loading branch information
MOchiara authored Nov 22, 2024
2 parents f32ff9c + cc4e0cc commit e705e65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions glidertest/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ def plot_glider_track(ds: xr.Dataset, ax: plt.Axes = None, **kw: dict) -> tuple(
gl.top_labels = False
gl.right_labels = False
plt.show()
ax = plt.gca()

return fig, ax

Expand Down Expand Up @@ -1084,4 +1083,4 @@ def plot_outlier_duration(ds: xr.Dataset, rolling_mean: pd.Series, overtime, std
label.set_visible(False)
if force_plot:
plt.show()
return fig, ax
return fig, ax

0 comments on commit e705e65

Please sign in to comment.