[ncl-talk] bar chart

Mary Haley haley at ucar.edu
Fri Oct 5 14:54:10 MDT 2018


I'm sorry, but I don't know what you mean by "I failed to add legend,
vpWidthF and vpHeightF to this example".

Do you mean you are trying to set a height and width for your legend and
it's not working? Are you using gsn_legend_ndc to create a legend? If not,
then what kind of legend are you trying to create?

If you have a problem with an NCL script, you MUST tell us what you have
tried so far, and show us some code and explain in detail what you are
trying to do.


On Fri, Oct 5, 2018 at 1:21 PM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com>
wrote:

> Dear Mary,
> Thank you so much for your nice reply.
> Obviously I had seen most examples of this page: http://www.ncl.ucar.edu/
> Applications/bar.shtml
> However I have some difficulties and for that reason I just need more
> help. My code is somehow different from http://www.ncl.ucar.edu/
> Applications/bar.shtml#ex14, but much similar to it.
> However I failed to add legend, "vpWidthF" and "vpHeightF" to this
> example. I'll be thankful if I could have some lines for that.
> Your links are so helpful and I saw them.
>
> Sincerely
> Ehsan
>
> On Friday, October 5, 2018, 9:51:53 PM GMT+3:30, Mary Haley <
> haley at ucar.edu> wrote:
>
>
> 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
> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
>
> _______________________________________________
> 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/30e5b803/attachment.html>


More information about the ncl-talk mailing list