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

Bugfix, topographical line values can now be set as string as well.

parent 940556bb
No related branches found
No related tags found
No related merge requests found
247
\ No newline at end of file
248
\ No newline at end of file
......@@ -23,14 +23,20 @@ hold(pAxesHandle, 'on');
topographicalLineHandles = cell(length(artoaWorkspace.trajectoryOutput.topographicalLines), 1);
for o = 1:length(artoaWorkspace.trajectoryOutput.topographicalLines)
if isnan(artoaWorkspace.trajectoryOutput.topographicalLines{o})
if isnan(artoaWorkspace.trajectoryOutput.topographicalLines{o}) ...
| (ischar(artoaWorkspace.trajectoryOutput.topographicalLines{o}) && strcmp(strip(artoaWorkspace.trajectoryOutput.topographicalLines{o}), ''))
continue;
end
try
if ischar(artoaWorkspace.trajectoryOutput.topographicalLines{o})
lineValue = str2double(artoaWorkspace.trajectoryOutput.topographicalLines{o});
else
lineValue = artoaWorkspace.trajectoryOutput.topographicalLines{o};
end
[~, topographicalLineHandles{o}] = contourm( ...
artoaDataInput.etopo.Z, ...
artoaDataInput.etopo.refvec, ...
[artoaWorkspace.trajectoryOutput.topographicalLines{o}, artoaWorkspace.trajectoryOutput.topographicalLines{o}], ...
[lineValue, lineValue], ...
'ShowText', 'on', ...
'LabelSpacing', 400 ...
);
......
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