Discussion:
plotyy leaves remains on future graphs
(too old to reply)
Tom Wright
2008-03-20 14:05:34 UTC
Permalink
Hi all

I've recently found the plotyy function in Octave 3.0.0 and it appears to
have some strange behaviour: once I've created one plot with plotyy, that
x=[1:10];
y=rand(size(x));
z=rand(size(x))*10;
plotyy(x,y,x,z);
# Works as expected
q=rand(size(x))*100;
plotyy(x,y,x,q);
# Has both the z and the q values and axes on the graph
plot(x,y)
# Has an inner set of axes, with z and q values on it.

Am I setting up or using this function wrong, or is this a genuine bug?

Thanks!
--
I'm at CAMbridge, not SPAMbridge
David Bateman
2008-03-20 21:07:39 UTC
Permalink
Post by Tom Wright
Hi all
I've recently found the plotyy function in Octave 3.0.0 and it appears to
have some strange behaviour: once I've created one plot with plotyy, that
x=[1:10];
y=rand(size(x));
z=rand(size(x))*10;
plotyy(x,y,x,z);
# Works as expected
q=rand(size(x))*100;
plotyy(x,y,x,q);
# Has both the z and the q values and axes on the graph
That should clear the original plot, and so yes you've found a bug.
Post by Tom Wright
plot(x,y)
# Has an inner set of axes, with z and q values on it.
That is as expected, as plotyy is a figure is two overlapping plots. The
final plot command replaces the first of these figures.
Post by Tom Wright
Am I setting up or using this function wrong, or is this a genuine bug?
No its a real bug. Please send a bug report to ***@octave.org so I won't
forget to fix it..

D.
Tom Wright
2008-03-21 21:18:41 UTC
Permalink
Post by David Bateman
forget to fix it..
Oops, sent it instead to ***@bugs.debian.org (I just used reportbug out
of habit) so I expect it'll be coming your way shortly.
--
I'm at CAMbridge, not SPAMbridge
Loading...