[plotting] suplot example

This commit is contained in:
Jan Grewe 2017-11-07 18:46:19 +01:00
parent c7a5569b63
commit 91fd7e817f
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
figure
set(gcf, 'Color', 'white', 'PaperUnit', 'centimeters', 'PaperSize', [12 8], ...
'PaperPosition', [0 0 12 8])
for i = 1:6
subplot(2, 3, i)
plot(0,0)
xlim([-1, 1])
ylim([-1, 1])
set(gca, 'XTick', [-1 0 1], 'YTick', [-1 0 1], 'TickDir', 'out', ...
'XTickLabels', [], 'YTickLabels', [], ...
'XGrid', 'on', 'YGrid', 'on', 'GridLineStyle', ':', 'Linewidth', 1.0, ...
'TickLength', [0.035 0.015])
text(-0.15, 0, num2str(i), 'fontsize', 14)
text(-1.5, 1.3, strcat(char(64 + i), ')'), 'fontsize', 10)
end
saveas(gcf, 'regular_subplot', 'pdf')

Binary file not shown.