On 2010-10-05 21:59-0700 David MacMahon wrote:

> Does the library strdup the passed in strings, render them before returning, 
> or just copy the pointers for later rendering?

Hi Dave:

It renders the text with

         plptex( text_x_world + text_justification * text_width0, ty,
0.1, 0.0, text_justification, text[i] );

where i is the index of the entry within the legend.  IOW, pllegend
contains a bit of low-level PLplot C library manipulation to determine
ratios of some units with others, save internal PLplot variables for
later restoration, etc., but most of it is high-level, i.e., it simply
makes calls to ordinary PLplot functionality such as plptex to get the
job done.

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
__________________________

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to