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

uncomment and repair contextual QC menu

% Update the radio button corresponding to the selected
% QC context menu (rbg : RadioButtonGroup)
radioTag     = ['TAG_QC_RADIO_' char(key)];  

add zoom out after each plot_Validation
% Draw the 3 plots of the validation figure and unzoom as the new 
% plot keep in memory the preceding zoom
% -----------------------------------------
plot_Validation( hMainFig, hPlotAxes, 1, tsg.plot.parameter{1} );
zoom out;
plot_Validation( hMainFig, hPlotAxes, 2, tsg.plot.parameter{2} );
zoom out;
plot_Validation( hMainFig, hPlotAxes, 3, tsg.plot.parameter{3} );
zoom out;

correct but in plot_Validation that display wrong vertical label, plot EXT var before VAR to get the rigth vertical label as SSPS instead of SSP_EXT_2


undo:
disable unknow plot_SalTempVel function
parent 4c8e092e
No related branches found
No related tags found
No related merge requests found
......@@ -20,28 +20,9 @@ switch nPlot
% erase all plpot with 'Tag'= ['TAG_PLOT' num2str(PlotNum) '_LINE_']
% ------------------------------------------------------------------
erase_Line( hPlotAxes, 1 );
% if there is data to plot
% ------------------------
if ~isempty( tsg.(PARA) )
% if lineType is selected from menu option/preferences and ne 'none'
% -----------------------------------------------------------------
if ~strcmp(lineType, 'none')
% just plot data line and without QC & marker in black in first plot
% -----------------------------------------------------------------
plot_Tsg( hMainFig, hPlotAxes, 1, tsg.DAYD, tsg.(PARA), [],...
PARA, 'k', lineType, 'none', 1);
end
% plot data data with QC color
% ----------------------------
plot_Tsg( hMainFig, hPlotAxes, 1, tsg.DAYD, tsg.(PARA), ...
tsg.([PARA '_QC']), PARA, '', 'none', '*', 2);
end
% if there is external data to plot
% ---------------------------------
if isfield(tsg,[SAMPLE '_EXT_TYPE']) && isfield(tsg,[SAMPLE '_EXT']) && ~isempty( tsg.([SAMPLE '_EXT']) )
% Plot squares for WS data
......@@ -65,6 +46,27 @@ switch nPlot
[SAMPLE '_EXT_2'], '', 'none', 'o', 5);
end
end
% if there is data to plot
% ------------------------
if ~isempty( tsg.(PARA) )
% if lineType is selected from menu option/preferences and ne 'none'
% -----------------------------------------------------------------
if ~strcmp(lineType, 'none')
% just plot data line and without QC & marker in black in first plot
% -----------------------------------------------------------------
plot_Tsg( hMainFig, hPlotAxes, 1, tsg.DAYD, tsg.(PARA), [],...
PARA, 'k', lineType, 'none', 1);
end
% plot data data with QC color
% ----------------------------
plot_Tsg( hMainFig, hPlotAxes, 1, tsg.DAYD, tsg.(PARA), ...
tsg.([PARA '_QC']), PARA, '', 'none', '*', 2);
end
% ---------------------------------------------------------------------
case 2
......
......@@ -2334,12 +2334,12 @@ hrbInterpCancel = uicontrol( ...
% Update the radio button corresponding to the selected
% QC context menu (rbg : RadioButtonGroup)
% -----------------------------------------------------
% radioTag = ['TAG_QC_RADIO_' key]; % Build the TAG of the CODE
% hbgChildren = get(hbgQc,'Children'); % Get the handles of the rbg
% hbgTagCell = get(hbgChildren, 'tag'); % get the TAG of the rbg
% ind = strcmp(radioTag, hbgTagCell); % Compare the TAG
% hRadioButton = hbgChildren( ind == 1 ); % Get the handle of the button
% set(hbgQc, 'SelectedObject', hRadioButton); % Make this button active
radioTag = ['TAG_QC_RADIO_' char(key)]; % Build the TAG of the CODE
hbgChildren = get(hbgQc,'Children'); % Get the handles of the rbg
hbgTagCell = get(hbgChildren, 'tag'); % get the TAG of the rbg
ind = strcmp(radioTag, hbgTagCell); % Compare the TAG
hRadioButton = hbgChildren( ind == 1 ); % Get the handle of the button
set(hbgQc, 'SelectedObject', hRadioButton); % Make this button active
display_QC( hMainFig);
......@@ -2710,14 +2710,14 @@ hrbInterpCancel = uicontrol( ...
% -----------------
tsg = getappdata( hMainFig, 'tsg_data' );
% Draw the 3 plots of the validation figure
% Draw the 3 plots of the validation figure and unzoom as the new
% plot keep in memory the preceding zoom
% -----------------------------------------
plot_Validation( hMainFig, hPlotAxes, 1, tsg.plot.parameter{1} );
zoom out;
plot_Validation( hMainFig, hPlotAxes, 2, tsg.plot.parameter{2} );
zoom out;
plot_Validation( hMainFig, hPlotAxes, 3, tsg.plot.parameter{3} );
% Necessary to unzoom as the new plot keep in memory the preceding zoom
% ---------------------------------------------------------------------
zoom out;
% Set the pointer
......@@ -3633,14 +3633,14 @@ hrbInterpCancel = uicontrol( ...
% Undo module not yet implemented
% -------------------------------
% msgbox('Undo module not yet implemented', 'modal');
msgbox('Undo module not yet implemented', 'modal');
%tsg.queue = undo(tsg.queue);
%tsg.SSPS_QC = get(tsg.queue);
% Make the Salinity, temperature and velocity plot
% ------------------------------------------------
plot_SalTempVel( hMainFig, hPlotAxes );
%plot_SalTempVel( hMainFig, hPlotAxes );
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