octave-maintainers
[Top][All Lists]
Advanced

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

Re: Patch to add axis position property


From: John W. Eaton
Subject: Re: Patch to add axis position property
Date: Thu, 09 Aug 2007 15:25:10 -0400

On  9-Aug-2007, Shai Ayal wrote:

| Hi Peter,
| I have a few comments:
| 
| On 8/9/07, Peter Gustafson <address@hidden> wrote:
| > Hi all,
| >
| > Attached is a patch which adds axis position properties for a plotted
| > line, ie corresponding to x2y2 etc for gnuplot and eventually plotyy
| > from matlab.  Although certainly not a complete implementation (For
| > example I've not yet determined how to set limits based on the
| > options).  However it is usable in a very basic way and lays a
| > foundation for further work.  I'd like to have it evaluated for inclusion.
| >
| > The property ends up like this:
| >
| > octave:1> h=plot(0); get(h)
| > ans =
| > {
| >   type = line
| >  ...
| >   xaxislocation = bottom
| >   yaxislocation = left
| > }
| 
| This properties are not matlab compatible. The way matlab does plotyy
| is to create two overlapping axes, and have each line be a chilld of
| the appropriate axes.
| I think it's OK to have octave as a superset of matlab, but I can't
| see a way in which to reconsile these two approaches.

Right, Matlab does have {x,y}asislocation properties, but they are
axes properties, not line properties, so I don't think we can include
this patch.

jwe


reply via email to

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