I have been inactive recently with PLplot because of computer troubles
(failing disk ==> computer replacement ==> install Debian testing),
but all is well now so I will have some time to work on PLplot without
distraction for the next little while.

So on to business. I was hoping not to do this again, but Hez and I
came to a consensus that there was a necessity for yet another API
change for pllegend where the current PLINT opt argument is split into
PLINT position, and PLINT opt where the position argument is used to
carry all the overall position bits. The point here is to relieve the
current bit congestion for opt (just because we can overload all those
different bits doesn't mean we should!)

In addition we now use the following #defines

#define PL_POSITION_LEFT             1
#define PL_POSITION_RIGHT            2
#define PL_POSITION_UPPER            4
#define PL_POSITION_LOWER            8
#define PL_POSITION_INSIDE           16
#define PL_POSITION_OUTSIDE          32
#define PL_POSITION_SUBPAGE          64

The point here is to have an independent namespace (PL_POSITION...
rather than PL_LEGEND...) for the overall position-related bits.  The
last of the above, PL_POSITION_SUBPAGE is entirely new and will give
users the option to express all coordinates (including the zero points
of the standard positions and offsets from those positions in relative
subpage coordinates rather than relative windows coordinate.

A big benefit of these planned changes is it makes it simple for
plcolorbar to use the same legend positioning logic as pllegend.

The current status is I have just finished all C changes (except for
implementation of the PL_POSITION_SUBPAGE bit logic) related to
pllegend.  The C results look fine.  However, in order to avoid core C
commits which break language components of PLplot, I am holding off
doing the commit until I can propagate everything to C++, f77, java,
ocaml, python, and octave bindings and examples.  Once all those work,
then I plan to commit everything I have done up to that point, then
implement and commit the PL_POSITION_SUBPAGE logic, then (as soon as
Hez has finished with his own planned plcolorbar changes) implement
and commit full positioning logic in plcolorbar following what is done
for pllegend.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to