added agent position trail to plot

This commit is contained in:
2026-01-01 16:06:19 -08:00
parent 4735c2b77b
commit c59b96f547
7 changed files with 61 additions and 9 deletions

View File

@@ -36,6 +36,9 @@ function obj = plot(obj)
% Plot domain partitioning
obj = obj.plotPartitions();
% Plot agent trails
obj = obj.plotTrails();
% Enforce plot limits
for ii = 1:size(obj.spatialPlotIndices, 2)
xlim(obj.f.Children(1).Children(obj.spatialPlotIndices(ii)), [obj.domain.minCorner(1), obj.domain.maxCorner(1)]);