Skip to content
Snippets Groups Projects
Commit a049116d authored by leprob001's avatar leprob001
Browse files

Bugfix, if the zoomed area does not contain any topographical lines, it will...

Bugfix, if the zoomed area does not contain any topographical lines, it will now produce a warning instead of an error.
parent 144a5ed9
No related branches found
No related tags found
No related merge requests found
228 229
\ No newline at end of file \ No newline at end of file
...@@ -26,13 +26,17 @@ for o = 1:length(artoaWorkspace.trajectoryOutput.topographicalLines) ...@@ -26,13 +26,17 @@ for o = 1:length(artoaWorkspace.trajectoryOutput.topographicalLines)
if isnan(artoaWorkspace.trajectoryOutput.topographicalLines{o}) if isnan(artoaWorkspace.trajectoryOutput.topographicalLines{o})
continue; continue;
end end
[~, topographicalLineHandles{o}] = contourm( ... try
artoaDataInput.etopo.Z, ... [~, topographicalLineHandles{o}] = contourm( ...
artoaDataInput.etopo.refvec, ... artoaDataInput.etopo.Z, ...
[artoaWorkspace.trajectoryOutput.topographicalLines{o}, artoaWorkspace.trajectoryOutput.topographicalLines{o}], ... artoaDataInput.etopo.refvec, ...
'ShowText', 'on', ... [artoaWorkspace.trajectoryOutput.topographicalLines{o}, artoaWorkspace.trajectoryOutput.topographicalLines{o}], ...
'LabelSpacing', 400 ... 'ShowText', 'on', ...
); 'LabelSpacing', 400 ...
);
catch
warning('There was an error on plotting topographical lines. Kindly ignore this warning if your zoomed area does not contain any topograpical lines.');
end
end end
hold(pAxesHandle, 'off'); hold(pAxesHandle, 'off');
......
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