Mercurial > hg > octave-lyh
comparison scripts/plot/plotyy.m @ 8299:be9b14945774
Add code to remove listeners from properties and use it with newplot
author | David Bateman <dbateman@free.fr> |
---|---|
date | Fri, 31 Oct 2008 12:30:20 +0100 |
parents | 52f2fba4f3f8 |
children | a186c5b4f264 |
comparison
equal
deleted
inserted
replaced
8298:7e87d3d76a56 | 8299:be9b14945774 |
---|---|
180 set (ax, "tag", "plotyy") | 180 set (ax, "tag", "plotyy") |
181 | 181 |
182 endfunction | 182 endfunction |
183 | 183 |
184 %!demo | 184 %!demo |
185 %! close all; | |
185 %! x = 0:0.1:2*pi; | 186 %! x = 0:0.1:2*pi; |
186 %! y1 = sin (x); | 187 %! y1 = sin (x); |
187 %! y2 = exp (x - 1); | 188 %! y2 = exp (x - 1); |
188 %! ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy); | 189 %! ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy); |
189 %! xlabel ("X"); | 190 %! xlabel ("X"); |