From cc4e0cc9dd41ea761ac47e9de5709cfd6a5043de Mon Sep 17 00:00:00 2001 From: Chiara Monforte Date: Fri, 22 Nov 2024 14:44:05 +0100 Subject: [PATCH] [FIX] Allow to call the ax and make changes to it --- glidertest/plots.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glidertest/plots.py b/glidertest/plots.py index 3204736..0ccfcd6 100644 --- a/glidertest/plots.py +++ b/glidertest/plots.py @@ -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 @@ -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 \ No newline at end of file + return fig, ax