-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexportTile3D.m
28 lines (28 loc) · 949 Bytes
/
exportTile3D.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%% Exports a 3D tiledlayout plot
function exportTile3D(tile, axArray, figure_high, figuresPath, fileName)
tile.TileSpacing = 'compact';
for ax = axArray
ax.XGrid = 'on';
ax.YGrid = 'on';
ax.ZGrid = 'on';
ax.XMinorGrid = 'on';
ax.YMinorGrid = 'on';
ax.ZMinorGrid = 'on';
ax.Box = 'on';
ax.BoxStyle = 'full';
ax.LabelFontSizeMultiplier = 1;
ax.TitleFontSizeMultiplier = 1;
ax.FontSizeMode = 'manual';
ax.FontSize = 9;
ax.FontName = 'CMU Serif'; % Use listfonts to see all available fonts
end
set(gcf, 'units', 'centimeters', 'position', [0 0 14.8 figure_high]);
for ax = axArray
decimalComma3D(ax);
end
if ~contains(fileName, '.pdf')
fileName = strcat(fileName, '.pdf');
end
exportgraphics(gcf, strcat(figuresPath, fileName), 'BackgroundColor', 'none', ...
'ContentType', 'vector');
end