-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeFigureAndAxes.m
23 lines (22 loc) · 978 Bytes
/
MakeFigureAndAxes.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Core Model, 2022
% Written by Maya Davis
% Concept by Maya Davis and Melissa A. Redford
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [Figure, AxesList] = MakeFigureAndAxes(FigureBackgroundColor, ...
AxesBackgroundColor, NumVerticalTiles, NumHorizontalTiles, ...
xBounds, yBounds)
TotalNumAxes = NumVerticalTiles * NumHorizontalTiles;
AxesBackgroundColorList = zeros(TotalNumAxes, 3);
xBoundsList = zeros(TotalNumAxes, 2);
yBoundsList = zeros(TotalNumAxes, 2);
for a = 1:TotalNumAxes
AxesBackgroundColorList(a,:) = AxesBackgroundColor;
xBoundsList(a,:) = xBounds;
yBoundsList(a,:) = yBounds;
end
[Figure, AxesList] = MakeFigureAndAxesSuperCustom(...
FigureBackgroundColor, NumVerticalTiles, NumHorizontalTiles, ...
0.02, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0, 0, 0, ...
AxesBackgroundColorList, xBoundsList, yBoundsList);
end