Hi Hez,

On 2010-09-11 22:56, Alan W. Irwin wrote:

>>> On 2010-09-10 18:46-0400 Hezekiah M. Carty wrote:
>>>
>>>> The initial version of pllegend is now in PLplot trunk, revision
>>>> 11165.

> To get that discussion rolling, I think we need a switch variable in
> the argument list to decide which of line, symbol, cmap0, or cmap1
> legend is being created.  For cmap0 the number of discrete colours
> that will be shown in the legend will be the same as the current
> number of legend entries, n, and the width of the colour box.  (The
> height of each one of those boxes can be calculated internally
> depending on the number of discrete colours.) For cmap1, we need the
> width of the colour box used to represent all the continuous colours.
> That can be the same as the cmap0 width.  We also need wmin and wmax
> values that are the world coordinates corresponding to cmap1 index
> values of 0. and 1.
> 
> Anything else?
> 

I took the opportunity to change the function 
get_character_and_symbol_height() to a static function - just to be
on the safe side.

Some remarks:

I have seen in the past that the C++ style of
comments (//) is not accepted by all C compilers (notably MSVC/C++ 9.0
or so, in C mode - there may be a flag to allow that). I will go and
change these comments to regular C style, if you all agree.

The line style and thickness are other aspects of an entry in a legend
that we need to take care of. Of course, this makes the argument list
a trifle lengthy, but there probably is no real alternative.

Regards,

Arjen

 

DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited.
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.





------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to