Re: Using transparent contour fills in gsn_csm_...

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon, 11 Jun 2007 14:50:03 -0600

Hi Michael,

Unfortunately, you cannot set any color to transparent when you have
cnFillMode = "RasterFill". However, you can set a transparent color when
you have cnFillMode = "AreaFill" or "CellFill". I would try those two
options and see if the results are acceptable.
Good luck,
Adam

Michael Uddstrom wrote:
> Hi
>
> I have a field with valid points everywhere that I want to contour fill
> over a map (on a 2D lat/lon projection) that has land/sea filled colors
> (via mpFillColors). I have specified some cnLevels and associated
> cnFillColors, and would like at least one of the filled contours to be
> transparent. I'm plotting using gsn_csm_contour_map with the HighRes
> coastline. However, when I set one of the cnFillColors to -1, ncl responds
>
> warning:LabelBarDraw: cannot use raster fill if explicit box sizing set
> or any color index is transparent: defaulting to normal fill
>
> At which point the hoped for transparent fill is overwritten by a
> non-transparent color, and I lose the land/sea coloring
>
> Thanks for your help
>
> Michael
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
--------------------------------------------------------------
Adam Phillips			             asphilli_at_ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000	  http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 11 2007 - 14:50:03 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 15 2007 - 12:34:56 MDT