[ncl-talk] Adding label bars to an xy (bar) graph
Barry Lynn
barry.h.lynn at gmail.com
Wed Aug 29 21:18:36 MDT 2018
Adam:
Actually, it's sort of obvious now that you show it because NCL is a very
logical language (the people who built it must share this attribute).
The command you set to False has the word "mono" within, while the command
you set contains only the word "FillPatterns."
Thanks for pointing this out and thank you for the help. Much appreciated!
Barry
On Thu, Aug 30, 2018 at 1:00 AM Adam Phillips <asphilli at ucar.edu> wrote:
> 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>
>
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180830/e98d4789/attachment.html>
More information about the ncl-talk
mailing list