Re: problem with contour transparency

From: Micah Sklut <micahs2005_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 07 2013 - 17:49:04 MST

Ah! Okay, thank you David.
I was going a bit crazy trying to figure out what was wrong. Glad I know
now.

Micah

On Thursday, March 7, 2013, David Brown wrote:

> Hi Micah,
> Your diagnosis is correct. The problem is that transparency is not
> possible with RasterFill contouring (prior to NCL 6.1.0) , for reasons I
> won't go into here. This has always been documented. The background color
> is substituted. You can use transparent (-1) as a color index if you set
> the fill mode to AreaFill or CellFill. If that doesn't work for you then
> you will need to upgrade your NCL version. Even with 6.x NCL, you will not
> be able to set the transparent color using -1 for a raster fill plot.
> Instead you need to use a 4-tuple RGBA value. We are hoping to fix this
> issue by the next release.
> -dave
>
> On Mar 7, 2013, at 4:48 PM, Micah Sklut wrote:
>
> > Hello,
> >
> > I am having a problem with my Map Fill showing under my countour.
> > My best guess is that the "transparent" color is not showing, but
> instead white is overlaying the map fill. I've attached an image showing my
> output.
> >
> > Below is the maping call and basic res.
> > Thank you for any suggestions.
> > PS. I'm using version 4.3.1 and I know I'm supposed to upgrade!
> >
> > contour = gsn_csm_contour_map_ce(wks,prec(i,:,:),res)
> >
> > Here's the basic res:
> > res = True
> >
> > res@gsnAddCyclic = False
> >
> > res@mpFillOn = True
> > res@mpLandFillColor = 2
> > res@mpOutlineBoundarySets = "NoBoundaries"
> >
> > res@tmYROn = False
> > res@tmYLOn = False
> > res@tmXBOn = False
> > res@tmXTOn = False
> > res@tmYRBorderOn = False
> > res@tmYLBorderOn = False
> > res@tmXBBorderOn = False
> > res@tmXTBorderOn = False
> >
> >
> > res@lbLabelBarOn = False
> > res@lbTitleOn = False
> >
> > res@gsnPaperOrientation = "portrait"
> > res@gsnMaximize = True
> > res@gsnLeftString = ""
> > res@gsnRightString = ""
> >
> > res@gsnDraw = False
> > res@gsnFrame = False
> >
> > res@cnLevelSelectionMode = "ExplicitLevels"
> > res@cnLevels =
> (/.00001,.00002,.00005,.00008,.0001,.0003,.0007,.001,.003,.005/)
> > res@cnFillColors = (/-1,6,7,8,9,10,11,12,13,14,15/)
> > res@cnFillMode = "RasterFill"
> > res@cnFillOn = True
> > res@cnLinesOn = False
> > res@cnLineLabelsOn = False
> >
> >
> > --
> > Micah Sklut
> >
> > <contour.png>_______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 
Micah Sklut

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 7 15:49:17 2013

This archive was generated by hypermail 2.1.8 : Wed Mar 13 2013 - 14:19:38 MDT