Skip to content

Commit c28b279

Browse files
Update plot_diagnostics_ow.m
fl.axes modified with respect to CC's comment
1 parent beb64d0 commit c28b279

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

matlab_codes/plot_diagnostics_ow.m

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,10 @@ function plot_diagnostics_ow( pn_float_dir, pn_float_name, po_system_configurati
408408

409409
fl.useqc = '0';
410410
fl.plot = 1;
411-
% DD (2024/09 - 4.5) : automatically set y-axis limits using tlevels.
412-
%fl.yaxes = [2 5 20];
413-
% DD (2025/01 - 4.4) : adapt from CC comment
411+
% DD (2024/09 - 4.5) : automatically set y-axis limits using tlevels; 2025/01: modified from CC's comment
412+
% fl.yaxes = [2 5 20];
414413
% fl.yaxes = [floor(min(tlevels,[],'all')) ceil(max(tlevels,[],'all')) ceil(max(TEMP))];
415-
fl.yaxes = [floor(min(tlevels,[],'all')) ceil(max(tlevels,[],'all')) ceil(max(TEMP,[],'all'))];
414+
fl.yaxes = [floor(min(min(TEMP,[],'all'),2)) ceil(min(max(tlevels,[],'all'),5)) ceil(min(max(TEMP,[],'all'),20))];
416415
d.PSAL = SAL;
417416
d.TEMP = TEMP;
418417
d.PRES = PRES;
@@ -659,9 +658,9 @@ function plot_diagnostics_ow( pn_float_dir, pn_float_name, po_system_configurati
659658

660659
fl.useqc = '0';
661660
fl.plot = 1;
662-
% DD (2024/09 - 4.5) : automatically set y-axis limits using tlevels.
661+
% DD (2024/09 - 4.5) : automatically set y-axis limits using tlevels. 2025/01: modified from CC's comment.
663662
%fl.yaxes = [2 5 20];
664-
fl.yaxes = [floor(min(tlevels,[],'all')) ceil(max(tlevels,[],'all')) ceil(max(TEMP))];
663+
fl.yaxes = [floor(min(min(TEMP,[],'all'),2)) ceil(min(max(tlevels,[],'all'),5)) ceil(min(max(TEMP,[],'all'),20))];
665664
d.PSAL = cal_SAL;
666665
d.TEMP = TEMP;
667666
d.PRES = PRES;

0 commit comments

Comments
 (0)