[Changeset] plotyy leaves traces of previous plots
David Bateman
adb014 at gmail.com
Thu Mar 27 17:45:32 CDT 2008
The plotyy function leaves traces of previous plots when called in
succession as the treatment of the axes handle doesn't taken into
account that in the case of plotyy it is a two element vector, and so
mistreats passing the handle to the function and setting the axis handle
for the second plot misses the call to newplot().
The issue can be seen with an example
x=[1:10];
y=rand(size(x));
z=rand(size(x))*10;
plotyy(x,y,x,z);
pause
q=rand(size(x))*100;
plotyy(x,y,x,q);
The attached changeset address this. There is however another issue in
gnuplot revealed by this in that the call to "unset ytics" passed to
gnuplot for the case of plotyy doesn't remove the mirrored ticks. This
is a minor annoyance but doesn't seem to be Octave's fault.
D.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch7853
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080327/5679be67/attachment-0001.ksh
More information about the Bug-octave
mailing list