This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
scientificComputing/plotting/code/regular_subplot.m

17 lines
602 B
Matlab

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')