[plotting] suplot example
This commit is contained in:
parent
c7a5569b63
commit
91fd7e817f
17
plotting/code/regular_subplot.m
Normal file
17
plotting/code/regular_subplot.m
Normal 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')
|
BIN
plotting/lecture/images/regular_subplot.pdf
Normal file
BIN
plotting/lecture/images/regular_subplot.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user