Re: how to change the default color of predefined fill patterns

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 06 2010 - 16:08:11 MDT

Ugh, sorry, that's the example I meant! Thanks for the correction Dave.

You first need to make sure cnFillOn is set to True, so you get the
fill patterns.

Then, if you want to change the color of all shaded patterns to one
color,
you can use:

  res@cnFillColor = "green"
  res@cnMonoFillColor = True

Otherwise, if you want different colors, you will get this by default.
You can
control the fill colors using cnFillColors. Setting
res@gsnSpreadColors = True
will cause the full colormap to be spanned.

--Mary

On Apr 6, 2010, at 3:43 PM, David Brown wrote:

> You might also want to look at example 11, which demonstrates how you
> can use different colors and different patterns simultaneously.
> -dave
>
> On Apr 6, 2010, at 3:20 PM, Mary Haley wrote:
>
>> Yes, see example 12 on the same page.
>>
>> --Mary
>>
>> On Apr 6, 2010, at 11:40 AM, Guangshan Chen wrote:
>>
>>> Hi all,
>>>
>>> There are two examples (coneff_7.ncl and coneff_13.ncl on http://www.ncl.ucar.edu/Applications/coneff.shtml
>>> )
>>> to show how to fill contours with the predefined fill patterns.
>>>
>>> The color of the predefined fill patterns are black. IS there any to
>>> change the default color?
>>> Let's say change the color from black to green.
>>>
>>>
>>> Thanks in advance.
>>>
>>> Guangshan
>>>
>>> _______________________________________________
>>> 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
>
> _______________________________________________
> 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 Tue Apr 6 16:08:32 2010

This archive was generated by hypermail 2.1.8 : Wed Apr 07 2010 - 07:12:50 MDT