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

The trajectory colors are now using the jet colormap.

parent c57ea724
No related branches found
No related tags found
No related merge requests found
...@@ -46,13 +46,12 @@ else ...@@ -46,13 +46,12 @@ else
trajectories = {}; trajectories = {};
end end
trajectoryColors = jet(round(length(trajectories) * 1.25));
for i = 1:length(trajectories) for i = 1:length(trajectories)
% initialize handle container % initialize handle container
artoaGui.trajectoryOutput.trajectoryHandles{i} = struct(); artoaGui.trajectoryOutput.trajectoryHandles{i} = struct();
trajectoryColor = artoaWorkspace.soundsourceColors( ... trajectoryColor = trajectoryColors(i, :);
mod(trajectories{i}.id, size(artoaWorkspace.soundsourceColors, 1)) + 1, ...
: ...
);
% plot the trajectory itself % plot the trajectory itself
[ ... [ ...
artoaGui.trajectoryOutput.trajectoryHandles{i}.scatterPositions, ... artoaGui.trajectoryOutput.trajectoryHandles{i}.scatterPositions, ...
...@@ -121,26 +120,6 @@ for i = 1:length(trajectories) ...@@ -121,26 +120,6 @@ for i = 1:length(trajectories)
end end
end end
%% Change trajectory plot to mercator if required
trajectoryAxes = artoaGui.trajectoryOutput.axesTrajectoryOutput;
if ~artoaWorkspace.trajectoryOutput.enableMercatorProjection
trajectoryAxes.UserData = [];
if ~isnan(ylim)
trajectoryAxes.YLim = ylim;
end
if ~isnan(xlim)
trajectoryAxes.XLim = xlim;
end
return;
end
trajectoryAxes = artoaGui.trajectoryOutput.axesTrajectoryOutput;
artoa.convert.axes2mercator( ...
trajectoryAxes, ...
false ...
);
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