[ncl-talk] Adding label bars to an xy (bar) graph
Adam Phillips
asphilli at ucar.edu
Wed Aug 29 16:00:27 MDT 2018
Hi Barry,
Thanks for sending a clean, easy-to-run script that I could test out. That
made finding the solution so much easier.
lbMonoFillPattern accepts logical arguments, so either True or False.
Try changing this:
lbres at lbMonoFillPattern = (/0,1,16/)
to this:
lbres at lbMonoFillPattern = False
lbres at lbFillPatterns = (/0,1,16/)
I've attached the resulting plot.
Adam
On Wed, Aug 29, 2018 at 9:40 AM Barry Lynn <barry.h.lynn at gmail.com> wrote:
> Hello:
>
> I don't find an example that quite fits my needs.
>
> I've overlayed three bar graphs on a single graph, and I want to add label
> bars.
>
> I am not sure how to best set the colors, since the colors change across
> the bar graph, but besides that it seems difficult to set the patterns
> correctly.
>
> *lbres at lbFillColors = res at gsnXYBarChartColors ; labelbar colors*
>
> *lbres at lbMonoFillPattern = (/0,1,16/)*
>
>
> *This output the first 1,2,3 patterns on the page.*
>
>
> *https://www.ncl.ucar.edu/Document/Graphics/Images/fillpatterns.png
> <https://www.ncl.ucar.edu/Document/Graphics/Images/fillpatterns.png>*
>
>
> *and not the number of the patterns specified.*
>
>
> (Also, the bottom most should be solid, of course.)
>
> --
> Barry H. Lynn, Ph.D
> Senior Associate Scientist, Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180829/8f228a5f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bars.png
Type: image/png
Size: 97071 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180829/8f228a5f/attachment.png>
More information about the ncl-talk
mailing list