[Changeset] plotyy leaves traces of previous plots

Shai Ayal shaiay at gmail.com
Mon Mar 31 15:10:03 CDT 2008


On Mon, Mar 31, 2008 at 9:56 PM, David Bateman <adb014 at gmail.com> wrote:
>
> John W. Eaton wrote:
>  > On 31-Mar-2008, David Bateman wrote:
>  >
>  > | The remain issue is whether the manner to detect that the current axis
>  > | handle points to one of a plotyy set of axes handles is correct. I used
>  > | the activepositionproperty of the axis to do this, but I'm not sure this
>  > | is valid. So I'd appreciate feedback from Michael or Shai if you have
>  > | some advice on this point..
>  >
>  > Matlab's documentation for newplot suggests that all it looks at is
>  > the nexplot property of the current figure and the current axes, and
>  > also the handlevisibility propery of the children of the current
>  > figure and axes objects.  It's not clear to me whether we can do more
>  > than that in the newplot function and have compatible behavior (which
>  > I realize we don't have now, even before the proposed changes).
>  >
>  > jwe
>  >
>
>  Then how does matlab handle the case "plotyy(x1,y1,x2,y3); plot(x3,y3)"?
>  Does it create a callback function that reinitializes the other plotyy
>  axis in  this case. Also how does it tell the difference from the above
>  case and "plotyy(x1,y1,x2,y2);plotyy(x3,y3,x4,y4)"? I think Michael or
>  Shai really has to give feedback on this to get it right, though my
>  proposed change seems to work fine for me..

Well, I really think we should test to see what matlab does in this
case, and only then decide what we should do. Can anyone test it?

Shai


More information about the Octave-maintainers mailing list