plot script fixes
This commit is contained in:
@@ -21,6 +21,8 @@ classdef miSim
|
|||||||
artifactName = "";
|
artifactName = "";
|
||||||
f; % main plotting tiled layout figure
|
f; % main plotting tiled layout figure
|
||||||
fPerf; % performance plot figure
|
fPerf; % performance plot figure
|
||||||
|
% Indicies for various plot types in the main tiled layout figure
|
||||||
|
spatialPlotIndices = [6, 4, 3, 2];
|
||||||
end
|
end
|
||||||
|
|
||||||
properties (Access = private)
|
properties (Access = private)
|
||||||
@@ -41,7 +43,6 @@ classdef miSim
|
|||||||
trailPlot; % objects for agent trail plot
|
trailPlot; % objects for agent trail plot
|
||||||
|
|
||||||
% Indicies for various plot types in the main tiled layout figure
|
% Indicies for various plot types in the main tiled layout figure
|
||||||
spatialPlotIndices = [6, 4, 3, 2];
|
|
||||||
objectivePlotIndices = [6, 4];
|
objectivePlotIndices = [6, 4];
|
||||||
networkGraphIndex = 5;
|
networkGraphIndex = 5;
|
||||||
partitionGraphIndex = 1;
|
partitionGraphIndex = 1;
|
||||||
|
|||||||
@@ -59,8 +59,10 @@ comparison = figure;
|
|||||||
copyobj(sim.f.Children, comparison);
|
copyobj(sim.f.Children, comparison);
|
||||||
|
|
||||||
% Plot trajectories on top
|
% Plot trajectories on top
|
||||||
hold(comparison.Children.Children(end), "on");
|
|
||||||
for ii = 1:size(G, 1)
|
for ii = 1:size(G, 1)
|
||||||
plot3(comparison.Children(1).Children(end), G{ii}.East, G{ii}.North, G{ii}.Up + seaToGroundLevel, 'Color', 'r', 'LineWidth', 1);
|
for jj = 1:size(sim.spatialPlotIndices, 2)
|
||||||
end
|
hold(comparison.Children.Children(sim.spatialPlotIndices(jj)), "on");
|
||||||
hold(comparison.Children.Children(end), "off");
|
plot3(comparison.Children(1).Children(sim.spatialPlotIndices(jj)), G{ii}.East, G{ii}.North, G{ii}.Up + seaToGroundLevel, 'Color', 'r', 'LineWidth', 1);
|
||||||
|
hold(comparison.Children.Children(sim.spatialPlotIndices(jj)), "off");
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Info/>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Info location="t1.zip" type="File"/>
|
||||||
Reference in New Issue
Block a user