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:
http://www.ncl.ucar.edu/Applications/xy.shtml#ex19
or example 8 on our legends page:
http://www.ncl.ucar.edu/Applications/legend.shtml#ex8
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:
http://www.ncl.ucar.edu/Applications/polyg.shtml
By the way, I'm working on a not-yet-finished page:
http://www.ncl.ucar.edu/Applications/concepts_list.shtml
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:
http://www.ncl.ucar.edu/Applications/func_list.shtml
http://www.ncl.ucar.edu/Applications/res_list.shtml
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.
--Mary
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
> NMFC/JTWC
> Pearl Harbor HI
> (808) 474-4856
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
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