On 2010-01-13 21:51, Alan W. Irwin wrote:

> Hi Alain:
> 
> This is a most interesting topic.
> 
> As I recall, the high-level octave interface does have some legend
> functionality (you might want to take a look at its use in the "p"
> examples), but it has never worked very well because of the issue of string
> size. Would you be willing to try implementing some pllegend capability in C
> to see how well plstrl (mentioned by Arjen) satisfies the string-size
> requirements of pllegend?
> 
> Once we have a satisfactory pllegend implemented for our core C library,
> then it is straightforward to propagate it to all our languages including
> octave. That is also true of plstrl if there is any need for it beyond its
> internal use by the C version of pllegend.
> 

One potential use of plstrl() beyond a legend is the implementation of
an "annotation box", I mean a piece of text that explains some
particular feature in a plot. Graphically it is the same sort of thing,
really, text that is surrounded by a box that fits pleasingly.

As for a first shot at the API, I think we need:
- A way to position the legend
- A way to fill it with lines/symbols and text that annotates the
   line/symbol

It is probably nicer to allow a stepwise build-up of the legend, that
is, something along these lines:

pllegend( ... initialise ... );
pllegend_add( line/symbol, text );
pllegend_add( line/symbol, text );
...
pllegend( ... finalise (and therefore draw) ... );

I am not sure yet how to represent the line/symbol part.

Regards,

Arjen


Regards,

Arjen

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to