Re: Can legends be used with Histograms

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sat, 7 Mar 2009 11:06:15 -0700

Hi Craig,

We have some examples of creating a legend using gsn_create_legend,
and gsn_add_annotation if you want to "attach" it to your plot.

See example 19 at:

or example 8 on our legends page:

If you don't like the style of legend from the above, then you can
create your own using polyline, polygon, and/or text calls.

See examples 8 and 10 at:

By the way, I'm working on a not-yet-finished page:

This page will list various things you want to accomplish in NCL, like
"manually creating a legend", and then list the pages and examples
that contain this concept.

Along the same idea are two pages that list every function and
resource in NCL, and the application examples they appears in:

These three links can be found at the top of the main applications
page. Not every function or resource appears in an example, but these
should give you a good start.


On Mar 6, 2009, at 6:55 PM, Motell, Craig E CIV NMFC_JTWC wrote:

> Dear Users:
> Relatively new to NCL, but would like to add a legend to a histogram
> plot.
> My first attempt failed.
> I see in documentation legend can be used with Xyplot and ContourPlot.
> Are there any examples available of using legend with the histogram
> function
> (gsn_histogram)?
> Thank you,
> Craig
> Craig Motell
> Technical Advisor
> Pearl Harbor HI
> (808) 474-4856
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Sat Mar 07 2009 - 11:06:15 MST

This archive was generated by hypermail 2.2.0 : Sun Mar 08 2009 - 12:05:46 MDT