Re: Using gsn_contour_shade

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon, 16 Mar 2009 10:51:43 -0600

Hi Gina,

gsn_contour_shade cannot accomplish what you are trying to do. It can
color fill between two distinct values, such as between 0 and 0.05. It
can at the same time color fill everything greater than (or less than) a
certain value as well, say 0.051. It cannot, however, at the same time
color fill between two distinct contours again, in your case 0.051 and 0.1.

I would suggest you do the color filling manually by using the
cnFillColors resource (make sure cnFillOn = True). There are many
examples on the Applications page that show how to do this. Here's one
that may be applicable to what you are doing:

note that the 0th index of cnFillColors = -1, or transparent. You will
likely want to do something similar for all areas other than 0-0.1.
Good luck,

Gina Henderson wrote:
> Hi there,
> I have a question about using gsn_contour_shade. I think I am making
> this more complicated that it has to be but I am overlaying 2 contour
> plots and the second field I want to shade from 0-0.05 one color and
> then from 0.051-0.1 another color. Using the gsnShadeLow/Mid/High
> options I can't see how I can shade to intervals that are next to each
> other as all the examples show how to shade values at either end of a
> range or values to one color only.
> Any thoughts or suggestions on using this resource would be great.
> Thanks, Gina.
> ------------------------------------------------------------------------
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

Adam Phillips			   
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Mar 16 2009 - 10:51:43 MDT

This archive was generated by hypermail 2.2.0 : Wed Mar 18 2009 - 14:50:21 MDT