function plot_Validation( hMainFig, hPlotAxes, nPlot, PARA ) % Get tsg application data % ------------------------ tsg = getappdata( hMainFig, 'tsg_data'); switch nPlot % --------------------------------------------------------------------- case 1 erase_Line( hPlotAxes, 1 ); if ~isempty( tsg.(PARA) ) plot_Tsg( hMainFig, hPlotAxes, 1, tsg.DAYD, tsg.(PARA), tsg.([PARA '_QC']),... PARA,'','none','*',2); end % Plot Salinity bucket % -------------------- if ~isempty( tsg.([PARA '_SPL']) ) ind = find( tsg.([PARA '_SPL_TYPE']) == 1 ); if ~isempty(ind) plot_Tsg( hMainFig, hPlotAxes, 1,... tsg.DAYD_SPL(ind), tsg.([PARA '_SPL'])(ind),... tsg.([PARA '_SPL_QC'])(ind), ... [PARA '_SPL_1'],'','none','square',5); end ind = find( tsg.([PARA '_SPL_TYPE']) > 1 ); if ~isempty(ind) plot_Tsg( hMainFig, hPlotAxes, 1, tsg.DAYD_SPL(ind),... tsg.([PARA '_SPL'])(ind),... tsg.([PARA '_SPL_QC'])(ind),... [PARA '_SPL_2'],'','none','o',5); end end % --------------------------------------------------------------------- case 2 erase_Line( hPlotAxes, 2 ); if ~isempty( tsg.SSJT ) plot_Tsg( hMainFig, hPlotAxes, 2, tsg.DAYD, tsg.SSJT, tsg.SSJT_QC,... 'SSJT','k','none','*',2); end % --------------------------------------------------------------------- case 3 erase_Line( hPlotAxes, 3 ); if ~isempty( tsg.SPDC ) plot_Tsg( hMainFig, hPlotAxes, 3, tsg.DAYD, tsg.SPDC,[],... 'SPDC','k','none','*',2); end end axesCommonProp( hPlotAxes ); end