From 89f4314ec51b1de259725b1cbe0b965dab61a931 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Tue, 7 Nov 2017 23:21:40 +0100 Subject: [PATCH] [plotting] irregular subplots and code example --- plotting/code/irregular_subplot.m | 26 ++++++++++++++++++ .../lecture/images/irregular_subplots.pdf | Bin 0 -> 2081 bytes 2 files changed, 26 insertions(+) create mode 100644 plotting/code/irregular_subplot.m create mode 100644 plotting/lecture/images/irregular_subplots.pdf diff --git a/plotting/code/irregular_subplot.m b/plotting/code/irregular_subplot.m new file mode 100644 index 0000000..f17c91c --- /dev/null +++ b/plotting/code/irregular_subplot.m @@ -0,0 +1,26 @@ +figure +set(gcf, 'Color', 'white', 'PaperUnit', 'centimeter', 'PaperSize', [12, 8], ... + 'PaperPosition', [0, 0, 12, 8]) + +subplot(2, 2, 1); +plot(1); +set(gca, 'XTick', [0 1 2], 'XTickLabels', [], 'TickDir', 'out', ... + 'TickLength', [0.04, 0.005], 'YTick', [0 1 2], 'LineWidth', 1, ... + 'XGrid', 'on', 'YGrid', 'on', 'GridLineStyle', ':') +text(0.95, 1, '1', 'FontSize', 14, 'FontWeight', 'bold') + +subplot(2, 2, 2); +plot(1); +set(gca, 'XTick', [0 1 2], 'XTickLabels', [], 'TickDir', 'out', ... + 'TickLength', [0.04, 0.005], 'YTick', [0 1 2], 'YTickLabels', [], ... + 'LineWidth', 1, 'XGrid', 'on', 'YGrid', 'on', 'GridLineStyle', ':',) +text(0.95, 1, '2', 'FontSize', 14, 'FontWeight', 'bold') + +subplot(2, 2, [3, 4]); +plot(1); +set(gca, 'XTick', [0 1 2], 'XTickLabels', [0 1 2], 'TickDir', 'out', ... + 'TickLength', [0.02, 0.005], 'YTick', [0 1 2], 'LineWidth', 1, ... + 'XGrid', 'on', 'YGrid', 'on', 'GridLineStyle', ':',) +text(0.875, 1, '3 + 4', 'FontSize', 14, 'FontWeight', 'bold') + +saveas(gcf, 'irregular_subplots', 'pdf') \ No newline at end of file diff --git a/plotting/lecture/images/irregular_subplots.pdf b/plotting/lecture/images/irregular_subplots.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b4daf2d73407e19c910df599ac116d2e53770716 GIT binary patch literal 2081 zcmbtVYfuwc6jo5NTd+Q0+KS8S#w|#0pwo4CmW1Uf>OQ&}QnEoc+mc?Wan8T1%la^I_);y9@Sow=HluIPNX@CSL52a z8TtY&Z9+gn_l)zQof{6nvRK?+)$FqLD(>Yx7Jd>@son2X>TqS!rydX0l9@GI|17At zNxWC$v9(xUygE@|o!&6|@~q6>=BoKtM=ch4XTX)F)XP1DT}0N-=$#%)`IMl9%2}gC zs`NY=B#fVb5+5J^5{nC3aW1=cN%GnC7xNKFxtoMaeKuwM(dKY!!RzVUCTD)E!~F9so1dXld?FQqSr?}SD2W+2_1Zy&oL8|eDRE+v9~(%Yb@1f z%<23!E*ml(zU(9=Gm@$|r#BVjHA$;eyRfRQCzxcO_tWRQCCEOboP@_+I)F6JpCqri zA8F;A6>qDZ%-+|nt<&Y&J03h+5Sfuv`o8J8xvnr=S~Rm|%gr_QZdA1*DYbjytF|T{ zbrJj^GjA{ceOmg`)$YsJ)>#z4+Gi}?)4X$G*L4u~AiHg=Pf1&$_L=O7a4nX-T~;=4 z>~i(K%zAJ&=#Ft?Ta065jqVp|#bm+AkhKdqZM9 zORG|J504gMm38?ax~^O|-kOZ5o$KCdT)>-{Uvk(PJMvhTbHT>EO7(MXXnQcz;6C{S zX1a~aLX5sO7P3BdE2`x*uesIZ`)+vb@$#s|YM^?sOJkMzUd<%+oT^2x>uXBPi4zXk z9h;J}=TPo;y9a@5q~9jvd5vn-jUZ9cIsYBC7s@}stFzws((FFMIkU{IpkwNd468~H zb7SwVEx85tH=5h4#D&hLGwl~q`%N8X%}+Mzewn)NX|~X~@%G_xQ&`KhP6v6Alil45 z1@g~c#ILX(CBL0EF4o5J_1pmKdhap0kM8ER^vr9xy+5hE`zhYllWV>HT8O#zT19#H zOT262b!GPBMcdE?RTX(RE1O2xhWM2tj^!_S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