On Tue, Jul 03, 2012 at 11:05:17AM +0200, Sylwester Arabas wrote:
> Hi Andrew,
> 
> Thanks for your answer.
> 
> On 03/07/12 10:05, Andrew Ross wrote:
>  > On Sat, Jun 30, 2012 at 11:54:37AM +0200, Sylwester Arabas wrote:
>  >> In GDL (gnudatalanguage) we use two "private" plplot functions:
>  >> plstrl and plP_mmpcy to get string width:
>  >> ...
>  >> Are there any "public" equivalents or any elegant way to achieve
>  >> this functionality without #including<plplot/plplotP.h>?
>  >
> > These functions are part of the internal API of plplot as you note and so 
> > are not guaranteed to be available to
> > the user. In fact using -fvisibility=hidden enforces this (and hence shows 
> > up problems like yours). I don't think
> > there is a sensible alternative in the current external API. Why do you 
> > need to access these functions? Is there
> > some other functionality in plplot that is missing?
> 
> We use to it to implement in GDL the WIDTH keyword of the IDL's XYOUTS 
> procedure. XYOUTS plots a string label on the current device, and 
> optionally returns the width of the plotted string.
> 
> Could plstrl() and plP_mmpcy() be made public (and part of the C++ API)?

Sylwester,

>From the link you sent it looks like you also make use of the internal 
plP_mmpcx and plP_gphy functions. Really what you want is the string 
width, or even a box around the string, returned in physical coordinates
rather than mm? This would then only require a single new API call?

We may be add in a API function if you can convince us it is useful. Before 
doing so we would need to make sure we designed a proper and generally useful 
external interface rather than just making the existing private functions 
available.

Andrew

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to