On Mon, Aug 23, 2010 at 4:16 PM, Bill Adams <[email protected]> wrote:
> Of course, I am using plsym to plot symbols. I would like to plot these
> symbols in the same legend however plsym uses world coordinates and
> figuring out the coordinates to use so the symbol matches up to a plmtex
> is problematic (in perl) since plgchr returns the height mm.
>
> I dug through the source code and it seems that plP_mmpcx is the routine
> I need access to convert between world coordinates and mm. However, that
> is an internal function and is otherwise not available.
>
> Any guidance on this would be greatly appreciated. Being able to go from
> character size to world coordinates size would be the most optimal
> solution because then I can also use pgptex to display tabulated data.
>

Bill,

The OCaml bindings include a character_height function which (should?)
return the character height in world coordinates:

http://plplot.svn.sourceforge.net/viewvc/plplot/trunk/bindings/ocaml/plplot.ml?revision=11020&view=markup

The function begins on line 611 and should be fairly self-explanatory.
 There is likely a simpler way to do this using internal PLplot
functions, but this method allows you to stick to the public,
documented API.

Hope this helps,

Hez

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to