Re: [Plplot-general] how to get size (in pixel) of a string ?

2010-01-14 Thread Alain Baeckeroot
Le 13/01/2010 à 21:51, Alan W. Irwin a écrit : Alain, if you don't have the needed C skills and/or time to implement pllegend in C, let us know, and hopefully someone else will volunteer. I may be a little short of both :) but I need to do something before the end of the week. It probably will

Re: [Plplot-general] how to get size (in pixel) of a string ?

2010-01-13 Thread Arjen Markus
Hi Alain, you are looking for plstrl(), I think, which returns the length of the string in mm. Regards, Arjen On 2010-01-13 16:15, Alain Baeckeroot wrote: Hi I would like to draw a box containing the legend of the graph, in a box with semi transparent background. So i need to know the

Re: [Plplot-general] how to get size (in pixel) of a string ?

2010-01-13 Thread Alain Baeckeroot
Hi Arjen Le 13/01/2010 à 16:26, Arjen Markus a écrit : Hi Alain, you are looking for plstrl(), I think, which returns the length of the string in mm. Yes :) This function is not listed in the documentation page, maybe it is worth adding it ? Thanks a lot Alain

Re: [Plplot-general] how to get size (in pixel) of a string ?

2010-01-13 Thread Arjen Markus
Hi Alain, I scanned the code :) But yes, if it is really part of the public API. (It should probably be anyway) Regards, Arjen On 2010-01-13 16:57, Alain Baeckeroot wrote: Hi Arjen Le 13/01/2010 à 16:26, Arjen Markus a écrit : Hi Alain, you are looking for plstrl(), I think, which

Re: [Plplot-general] how to get size (in pixel) of a string ?

2010-01-13 Thread Alain Baeckeroot
Hi Arjen Le 13/01/2010 à 17:00, Arjen Markus a écrit : Hi Alain, I scanned the code :) But yes, if it is really part of the public API. (It should probably be anyway) I jumped into the source too. I doubt plstrl is part of the public API: i cannot access to it from octave. and even if

Re: [Plplot-general] how to get size (in pixel) of a string ?

2010-01-13 Thread Andrew Ross
On Wed, Jan 13, 2010 at 12:51:13PM -0800, Alan Irwin wrote: On 2010-01-13 16:15+0100 Alain Baeckeroot wrote: Hi I would like to draw a box containing the legend of the graph, in a box with semi transparent background. So i need to know the lenght (in pixel or win coordinates) of the