comparison scripts/plot/plotyy.m @ 7245:d65670971cbc

[project @ 2007-12-04 03:03:54 by jwe]
author jwe
date Tue, 04 Dec 2007 03:03:55 +0000
parents 3a695b7adf8e
children 8e5feea0545a
comparison
equal deleted inserted replaced
7244:5a9561046b89 7245:d65670971cbc
124 color = obj.edgecolor; 124 color = obj.edgecolor;
125 else 125 else
126 color = [0, 0, 0]; 126 color = [0, 0, 0];
127 endif 127 endif
128 endfunction 128 endfunction
129
130 %!demo
131 %! x = 0:0.1:2*pi;
132 %! y1 = sin (x);
133 %! y2 = exp (x - 1);
134 %! ax = plotyy (x, y1, x - 1, y2, @@plot, @@semilogy);
135 %! xlabel ("X");
136 %! ylabel (ax(1), "Axis 1");
137 %! ylabel (ax(2), "Axis 2");