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

The default limits of the trajectory plot can now be set in the artoa.ini file.

parent ccba45ec
No related branches found
No related tags found
No related merge requests found
276
\ No newline at end of file
277
\ No newline at end of file
......@@ -48,6 +48,10 @@
-hidedeleteddatapoints 0
-toapointsize 18
[trajectoryOutput]
-limitlat -72 -66
-limitlon -55 -15
[defaults]
-pressure 9999
-temperature 9999
......
......@@ -2,7 +2,7 @@ function [] = plot(pPlotAsMap)
%PLOT Summary of this function goes here
% Detailed explanation goes here
global artoaGui artoaWorkspace;
global artoaGui artoaWorkspace artoaConfig;
%% Parameter check
if nargin == 0
......@@ -178,5 +178,15 @@ if artoa.data.hasMember(artoaWorkspace, 'trajectoryOutput', 'showTopographicalLi
artoaGui.trajectoryOutput.contourTopographicalLines = artoa.controller.track.trajectoryOutput.plotTopographicalLines(artoaGui.trajectoryOutput.axesTrajectoryOutput);
end
%% Set axes limits to artoa.ini if not selected manual
if ~strcmp(artoaGui.trajectoryOutput.axesTrajectoryOutput.YLimMode, 'manual') ...
& artoa.data.hasMember(artoaConfig, 'trajectoryOutput', 'limitlat')
artoaGui.trajectoryOutput.axesTrajectoryOutput.YLim = artoaConfig.trajectoryOutput.limitlat;
end
if ~strcmp(artoaGui.trajectoryOutput.axesTrajectoryOutput.XLimMode, 'manual') ...
& artoa.data.hasMember(artoaConfig, 'trajectoryOutput', 'limitlon')
artoaGui.trajectoryOutput.axesTrajectoryOutput.XLim = artoaConfig.trajectoryOutput.limitlon;
end
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