plot script fixes

This commit is contained in:
2026-03-04 23:06:06 -08:00
parent d5c7f4f11f
commit bdc31ccad5
5 changed files with 12 additions and 5 deletions

View File

@@ -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;

View File

@@ -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)
hold(comparison.Children.Children(sim.spatialPlotIndices(jj)), "on");
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 end
hold(comparison.Children.Children(end), "off");

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Info/>

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Info location="t1.zip" type="File"/>

BIN
t1.zip Normal file

Binary file not shown.