Mercurial > hg > octave-lyh
comparison scripts/plot/plotyy.m @ 12437:a754c2d8a13f
Modify demo scripts to allow conventient conversion to Matlab compatible syntax.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 10 Feb 2011 18:48:36 -0500 |
parents | e916491cbb99 |
children | d0b799dafede |
comparison
equal
deleted
inserted
replaced
12435:0f21f258aa17 | 12437:a754c2d8a13f |
---|---|
220 %! ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy); | 220 %! ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy); |
221 %! xlabel ("X"); | 221 %! xlabel ("X"); |
222 %! ylabel (ax(1), "Axis 1"); | 222 %! ylabel (ax(1), "Axis 1"); |
223 %! ylabel (ax(2), "Axis 2"); | 223 %! ylabel (ax(2), "Axis 2"); |
224 %! axes (ax(1)) | 224 %! axes (ax(1)) |
225 %! text (0.5, 0.5, "Left Axis", | 225 %! text (0.5, 0.5, "Left Axis", ... |
226 %! "color", [0 0 1], "horizontalalignment", "center") | 226 %! "color", [0 0 1], "horizontalalignment", "center") |
227 %! axes (ax(2)) | 227 %! axes (ax(2)) |
228 %! text (4.5, 80, "Right Axis", | 228 %! text (4.5, 80, "Right Axis", ... |
229 %! "color", [0 0.5 0], "horizontalalignment", "center") | 229 %! "color", [0 0.5 0], "horizontalalignment", "center") |
230 | 230 |
231 %!demo | 231 %!demo |
232 %! clf | 232 %! clf |
233 %! x = linspace (-1, 1, 201); | 233 %! x = linspace (-1, 1, 201); |