implemented partitioning

This commit is contained in:
2025-11-11 12:50:43 -08:00
parent 74088a13f3
commit 9e948072e8
8 changed files with 295 additions and 74 deletions

View File

@@ -1,9 +1,15 @@
function f = firstPlotSetup(f)
arguments (Input)
f (1, 1) {mustBeA(f, 'matlab.ui.Figure')} = figure;
end
arguments (Output)
f (1, 1) {mustBeA(f, 'matlab.ui.Figure')};
end
if isempty(f.CurrentAxes)
tiledlayout(f, 5, 4, "TileSpacing", "tight", "Padding", "compact");
tiledlayout(f, 5, 5, "TileSpacing", "tight", "Padding", "compact");
% 3D view
nexttile(1, [4, 4]);
nexttile(1, [4, 5]);
axes(f.Children(1).Children(1));
axis(f.Children(1).Children(1), "image");
grid(f.Children(1).Children(1), "on");
@@ -12,7 +18,7 @@ function f = firstPlotSetup(f)
title(f.Children(1).Children(1), "3D View");
% Communications graph
nexttile(17, [1, 1]);
nexttile(21, [1, 1]);
axes(f.Children(1).Children(1));
axis(f.Children(1).Children(1), "image");
grid(f.Children(1).Children(1), "off");
@@ -28,7 +34,7 @@ function f = firstPlotSetup(f)
set(f.Children(1).Children(1), 'YColor', 'none');
% Top-down view
nexttile(18, [1, 1]);
nexttile(22, [1, 1]);
axes(f.Children(1).Children(1));
axis(f.Children(1).Children(1), "image");
grid(f.Children(1).Children(1), "on");
@@ -37,7 +43,7 @@ function f = firstPlotSetup(f)
title(f.Children(1).Children(1), "Top-down View");
% Side-on view
nexttile(19, [1, 1]);
nexttile(23, [1, 1]);
axes(f.Children(1).Children(1));
axis(f.Children(1).Children(1), "image");
grid(f.Children(1).Children(1), "on");
@@ -46,12 +52,27 @@ function f = firstPlotSetup(f)
title(f.Children(1).Children(1), "Side-on View");
% Front-on view
nexttile(20, [1, 1]);
nexttile(24, [1, 1]);
axes(f.Children(1).Children(1));
axis(f.Children(1).Children(1), "image");
grid(f.Children(1).Children(1), "on");
view(f.Children(1).Children(1), 0, 0);
xlabel(f.Children(1).Children(1), "X"); zlabel(f.Children(1).Children(1), "Z");
title(f.Children(1).Children(1), "Front-on View");
% Partitioning
nexttile(25, [1, 1]);
axes(f.Children(1).Children(1));
axis(f.Children(1).Children(1), "image");
grid(f.Children(1).Children(1), "on");
view(f.Children(1).Children(1), 0, 90);
xlabel(f.Children(1).Children(1), "X"); ylabel(f.Children(1).Children(1), "Y");
title(f.Children(1).Children(1), "Domain Partitioning");
set(f.Children(1).Children(1), 'XTickLabelMode', 'manual');
set(f.Children(1).Children(1), 'YTickLabelMode', 'manual');
set(f.Children(1).Children(1), 'XTickLabel', {});
set(f.Children(1).Children(1), 'YTickLabel', {});
set(f.Children(1).Children(1), 'XTick', []);
set(f.Children(1).Children(1), 'YTick', []);
end
end