Skip to content
Snippets Groups Projects
Commit 319ca6fe authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

ajout du tracé de la climato en température

parent 40fbbd16
No related branches found
No related tags found
No related merge requests found
...@@ -724,7 +724,8 @@ function tsgqc_GUI ...@@ -724,7 +724,8 @@ function tsgqc_GUI
% Get data % Get data
% ----------------------- % -----------------------
tsg = getappdata( hMainFig, 'tsg_data' ); tsg = getappdata( hMainFig, 'tsg_data' );
hLine = get( hPlotAxes(1), 'UserData'); hLine1 = get( hPlotAxes(1), 'UserData');
hLine2 = get( hPlotAxes(2), 'UserData');
% Read Climatology % Read Climatology
% ---------------- % ----------------
...@@ -793,17 +794,26 @@ function tsgqc_GUI ...@@ -793,17 +794,26 @@ function tsgqc_GUI
end end
% Plot mean salinity climatology % Plot mean salinity climatology
hLine.meanClim = line( ... hLine1.meanClim = line( ...
time, mean_psal,'Linestyle', '-', 'Color','k'); time, mean_psal,'Linestyle', '-', 'Color','k');
% Plot 2 standard deviation % Plot 2 standard deviation
hLine.stdClimPlus = line( ... hLine1.stdClimPlus = line( ...
time, mean_psal + 3 * std_psal ,'Linestyle', '-', 'Color','r'); time, mean_psal + 3 * std_psal ,'Linestyle', '-', 'Color','r');
hLine.stdClimMinus = line( ... hLine1.stdClimMinus = line( ...
time, mean_psal - 3 * std_psal ,'Linestyle', '-', 'Color','r'); time, mean_psal - 3 * std_psal ,'Linestyle', '-', 'Color','r');
% Plot mean temperature climatology
axes( hPlotAxes(2));
hLine2.meanClim = line( ...
time, mean_temp,'Linestyle', '-', 'Color','k');
hLine2.stdClimPlus = line( ...
time, mean_temp + 3 * std_temp ,'Linestyle', '-', 'Color','r');
hLine2.stdClimMinus = line( ...
time, mean_temp - 3 * std_temp ,'Linestyle', '-', 'Color','r');
% Store the handle of the bucketline % Store the handle of the bucketline
% ---------------------------------- % ----------------------------------
set( hPlotAxes(1), 'UserData', hLine ); set( hPlotAxes(1), 'UserData', hLine1 );
set( hPlotAxes(2), 'UserData', hLine2 );
end end
else else
...@@ -813,12 +823,16 @@ function tsgqc_GUI ...@@ -813,12 +823,16 @@ function tsgqc_GUI
% The bucket pushbutton has been pressed again : % The bucket pushbutton has been pressed again :
% Delete the bucket on figure % Delete the bucket on figure
% ---------------------------------------------- % ----------------------------------------------
hLine = get( hPlotAxes(1), 'UserData'); hLine1 = get( hPlotAxes(1), 'UserData');
hLine2 = get( hPlotAxes(2), 'UserData');
% bug...... % bug......
try try
delete(hLine.stdClimMinus); delete(hLine1.stdClimMinus);
delete(hLine.stdClimPlus); delete(hLine1.stdClimPlus);
delete(hLine.meanClim); delete(hLine1.meanClim);
delete(hLine2.stdClimMinus);
delete(hLine2.stdClimPlus);
delete(hLine2.meanClim);
catch catch
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment