[ncl-talk] bar chart

Mary Haley haley at ucar.edu
Fri Oct 5 12:21:10 MDT 2018


There are several examples on that page of how to add a legend using
labelbars.  See:

http://www.ncl.ucar.edu/Applications/bar.shtml#ex7
http://www.ncl.ucar.edu/Applications/bar.shtml#ex11
http://www.ncl.ucar.edu/Applications/bar.shtml#ex22

If you don't want a labelbar, then you can use markers, text, and/or lines
to add your own legend, using calls to gsn_text_ndc, gsn_polyline_ndc,
gsn_polymarker_ndc, and gsn_polygon_nc.

The primitives page has many examples. See:

http://www.ncl.ucar.edu/Applications/polyg.shtml#ex8
http://www.ncl.ucar.edu/Applications/polyg.shtml#ex16
http://www.ncl.ucar.edu/Applications/polyg.shtml#ex18

--Mary



On Fri, Oct 5, 2018 at 8:41 AM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com>
wrote:

> Hi,
> May I ask how add legend, "vpWidthF" and "vpHeightF"  to script
> (bar_14.ncl):
> NCL Graphics: Bar Charts <https://www.ncl.ucar.edu/Applications/bar.shtml>
>
> NCL Graphics: Bar Charts
>
> NCL graphics examples page. Describes how to create bar charts.
> <https://www.ncl.ucar.edu/Applications/bar.shtml>
>
>
>
> Sincerely
> Ehsan
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181005/8bfd2757/attachment.html>


More information about the ncl-talk mailing list