Mercurial > octave-nkf
comparison scripts/plot/plotyy.m @ 7314:8e5feea0545a
[project @ 2007-12-13 17:48:59 by jwe]
author | jwe |
---|---|
date | Thu, 13 Dec 2007 17:48:59 +0000 |
parents | d65670971cbc |
children | aead4b9d026b |
comparison
equal
deleted
inserted
replaced
7313:7fd7abd37113 | 7314:8e5feea0545a |
---|---|
129 | 129 |
130 %!demo | 130 %!demo |
131 %! x = 0:0.1:2*pi; | 131 %! x = 0:0.1:2*pi; |
132 %! y1 = sin (x); | 132 %! y1 = sin (x); |
133 %! y2 = exp (x - 1); | 133 %! y2 = exp (x - 1); |
134 %! ax = plotyy (x, y1, x - 1, y2, @@plot, @@semilogy); | 134 %! ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy); |
135 %! xlabel ("X"); | 135 %! xlabel ("X"); |
136 %! ylabel (ax(1), "Axis 1"); | 136 %! ylabel (ax(1), "Axis 1"); |
137 %! ylabel (ax(2), "Axis 2"); | 137 %! ylabel (ax(2), "Axis 2"); |