Re: Transparent plots

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon May 17 2010 - 16:28:51 MDT

Hi Jorge,
Welcome to NCL! -1 is the color index you need to specify to get
transparency. Note: You cannot use transparency when setting cnFillMode
= "RasterFill"

Quick example code snippet:
;-----------------------------
wks = gsn_open_wks("ps","test")
gsn_define_colormap(wks,"BlWhRe") ; use Blue White Red colormap

res = True
.....
res@cnLevelSelectionMode = "ExplicitLevels" ; explicitly set the
contour levels
res@cnLevels = (/1,2,4,6,10,15,20/) ; specify the
contour levels
res@cnFillOn = True ;
color fill the plot
res@cnFillColors = (/-1,2,5,10,15,20,25,30/) ; set the colors
that are to be used
;-------------------------------------------

If you haven't done it already, I'd scan through the NCL graphics and
mini-language manuals:
http://www.ncl.ucar.edu/Document/Manuals/
Adam

On 05/17/2010 03:28 PM, Jorge Zarauz wrote:
> Hi,
> I am new running NCL. Anybody knows how to set values less than 1
> transparent on my plot?
> Thanks,
> Jorge Zarauz
> Saint Louis University
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon May 17 16:28:58 2010

This archive was generated by hypermail 2.1.8 : Wed May 26 2010 - 10:39:13 MDT