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

Si le QC associé à une variable n'existe pas, ne tente pas de le tracer.

parent 0f2dadae
No related branches found
No related tags found
No related merge requests found
......@@ -54,23 +54,33 @@ if isempty(MyColor)
% ----------------------------------------------
if strcmp( state, 'on')
% plot tsg salinity sample with right code/color
% ----------------------------------------------
ind = find(sample.([parameter '_QC']) == code );
if ~isempty( ind )
line( sample.DAYD(ind), sample.(Para)(ind), ...
'Tag', ['TAG_PLOT' num2str(PlotNum) '_LINE_' Para '_' key],...
'LineStyle', 'none',...
'Marker', 'square', 'MarkerSize', 5,...
'MarkerEdgeColor', 'k', 'MarkerFaceColor', color);
% test if structure sample exist and menber is valid
% --------------------------------------------------
if isfield(sample, [parameter '_QC'])
% find corresponding code <=> values
% ----------------------------------
ind = find(sample.([parameter '_QC']) == code );
% plot tsg salinity sample with right code/color
% ----------------------------------------------
if ~isempty( ind )
line( sample.DAYD(ind), sample.(Para)(ind), ...
'Tag', ['TAG_PLOT' num2str(PlotNum) '_LINE_' Para '_' key],...
'LineStyle', 'none',...
'Marker', 'square', 'MarkerSize', 5,...
'MarkerEdgeColor', 'k', 'MarkerFaceColor', color);
end
end
end
end
else
% add comment !!!!
% ----------------------------------------------
line( sample.DAYD, sample.(Para),...
'Tag', ['TAG_PLOT' num2str(PlotNum) '_LINE_' Para],...
'LineStyle', 'none', 'Marker', 'square', 'MarkerSize', 5,...
......
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