From 9b0b01b7acdf0bcd2eb30c36506bf6194d21b27e Mon Sep 17 00:00:00 2001 From: ChiaraMonforte Date: Fri, 12 Jul 2024 11:27:39 +0200 Subject: [PATCH] Bless the tests because I am super sloppy --- glidertest/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glidertest/tools.py b/glidertest/tools.py index 3b1f7c9..d23ae84 100644 --- a/glidertest/tools.py +++ b/glidertest/tools.py @@ -486,7 +486,7 @@ def plot_section_with_srss(ax, ds, sel_var='TEMP',start_time = '2023-09-06', end def check_temporal_drift(ax1, ax2, ds, var='DOXY'): ax1.scatter(mdates.date2num(ds.TIME),ds[var], s=10) - ax1.xaxis.set_major_formatter(dates.DateFormatter('%Y-%m-%d')) + ax1.xaxis.set_major_formatter(DateFormatter('%Y-%m-%d')) ax1.set(ylim=(np.nanpercentile(ds[var], 0.01), np.nanpercentile(ds[var], 99.99)), ylabel=var) c=ax2.scatter(ds[var],ds.DEPTH,c=mdates.date2num(ds.TIME), s=10)