Mercurial > hg > octave-nkf
comparison scripts/plot/plotyy.m @ 10914:c0434971d0a8
plotyy.m: Modified demo for changeset 10912 9abc67b4bd4f.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 27 Aug 2010 06:50:22 -0400 |
parents | be55736a0783 |
children | a72d53df4fa6 |
comparison
equal
deleted
inserted
replaced
10913:dd6b90f44ae5 | 10914:c0434971d0a8 |
---|---|
205 %! y2 = exp (x - 1); | 205 %! y2 = exp (x - 1); |
206 %! ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy); | 206 %! ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy); |
207 %! xlabel ("X"); | 207 %! xlabel ("X"); |
208 %! ylabel (ax(1), "Axis 1"); | 208 %! ylabel (ax(1), "Axis 1"); |
209 %! ylabel (ax(2), "Axis 2"); | 209 %! ylabel (ax(2), "Axis 2"); |
210 %! axes (ax(1)) | |
211 %! text (0.5, 0.5, "Leftt Axis", | |
212 %! "color", [0 0 1], "horizontalalignment", "center") | |
213 %! axes (ax(2)) | |
214 %! text (4.5, 80, "Right Axis", | |
215 %! "color", [0 0.5 0], "horizontalalignment", "center") | |
210 | 216 |
211 %!demo | 217 %!demo |
212 %! clf | 218 %! clf |
213 %! x = linspace (-1, 1, 201); | 219 %! x = linspace (-1, 1, 201); |
214 %! subplot (2, 2, 1) | 220 %! subplot (2, 2, 1) |