@@ -408,11 +408,10 @@ function plot_diagnostics_ow( pn_float_dir, pn_float_name, po_system_configurati
408408
409409fl.useqc = ' 0' ;
410410fl.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 ))];
416415d.PSAL = SAL ;
417416d.TEMP = TEMP ;
418417d.PRES = PRES ;
@@ -659,9 +658,9 @@ function plot_diagnostics_ow( pn_float_dir, pn_float_name, po_system_configurati
659658
660659fl.useqc = ' 0' ;
661660fl.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 ))];
665664d.PSAL = cal_SAL ;
666665d.TEMP = TEMP ;
667666d.PRES = PRES ;
0 commit comments