RE: [ncl-talk] Area fill the northern provinces of Canada

From: Alex Gardner <alexg_at_nyahnyahspammersnyahnyah>
Date: Fri, 21 Apr 2006 16:38:51 -0600

Thanks for the help Adam but I've found a new problem. I'm trying to make
contour plot with the Canadian North shaded. I can produce the map fine
until I add the contour fill. Is there a way to have the shaded land area
show up through a filled contour plot?

Thanks for the help,

-----Original Message-----
From: Adam Phillips []
Sent: Friday, April 21, 2006 3:40 PM
To: Alex Gardner
Subject: Re: Area fill the northern provinces of Canada

Hi Alex,

To add a single color to your working colormap use NhlNewColor:

and to use a gray set each numerical input to the same value between 0
and 1.0. for example: newcolor = NhlNewColor(wks,.75,.75,.75)
The closer to 1.0 you get the lighter the gray.

To select specific areas to fill is a bit more complicated. I took a bit
from a few examples found on the maps only Applications page:

and I attached it and the corresponding plot here. Basically I outline
every Canadian area (by setting mpOutlineSpecifiers), but only gray fill
the Northwest Territories (by setting mpFillAreaSpecifiers and

Let us know if you have any questions about what I did...

Alex Gardner wrote:
> Does any one know how to area fill (any color) the northern provinces of
> Canada when using a color table which does not include gray?
> _______________________________________________
> ncl-talk mailing list

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
Received on Fri Apr 21 2006 - 16:38:51 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 24 2006 - 09:06:29 MDT