octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plotyy problems and change proposal


From: Michael Goffioul
Subject: Re: plotyy problems and change proposal
Date: Sun, 2 Dec 2007 10:23:17 +0100

On 12/1/07, David Bateman <address@hidden> wrote:
> Michael Goffioul wrote:
> > Hi,
> >
> > I tried to use plotyy in JHandles but faced some problems:
> >
> > 1) plotyy sets "position" to the "outerposition" value, which by default is
> > [0 0 1 1] in normalized units; this is of course not what you want to do
> > if you really interpret those properties as Matlab does: setting position to
> > [0 0 1 1] will make the axes to fill the whole figure and put the tick marks
> > outside the figure area. For JHandles, what I would do instead is to set
> > the position of the second axes to the one of the first axes, and set
> > "activepositionproperty" to "position" for both axes.
>
> This I think needs listener functions to work correctly. We don't have
> them yet and won't by choice till after 3.0 and so I see no easy fix for
> this that is completely matlab compatiable.. At the moment I've used the
> fact the plotyy is the only function that uses the position property to
> get __go_draw_axes__ to force both axes to have common axes.. Using an
> ActivePositionProperty property instead should be fine, so we can
> probably make it closer to what you want.

You don't really need listeners for this. It would be enough to set the
position to something reasonable. [0 0 1 1] is not a good value for
position in normalized units. Just use something else and it should be
fine with JHandles: for instance, typical value used in JHandles is
[0.11 0.13 0.78 0.73] (altough it looks a little bit to small).

> > 2) the second axes should get "color" set to "none", otherwise you don't
> > see the first axes behind it.
>
> There is no color property of the axes in Octave at the moment, only
> {x|y|z}color. I see no issue adding that either I suppose.. I'll see
> what I can do, though it might take a couple of days so feel free to
> propose a patcn..

I don't have that much time neither this weekend...

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]