I'm investigating this more, but it appears to be a bug, and I'll file a ticket. In the meantime, a workaround is to assign your workstation colormap or contour palette (depending on how you are doing things) into a comparably sized colormap composed of 4-tuples, and then assigning the alpha channel of that new color map to what you want. Something like
setvalues wks
"wkColorMap" : wksCmap
end setvalues
wksCmapDims = dimsizes(wksCmap)
newCmap = new((/ wksCmapDims(0), 4 /), float)
newCmap(:,0:2) = wksCmap
newCmap(:,3) = 0.5 ;;;; or whatever you had wanted for cnFillOpacityF
cnres@cnFillPalette = newCmap
Clumsy, but it works…
Rick
On Mar 4, 2013, at 10:02 PM, Daniel Argueso Barriga <d.argueso@unsw.edu.au> wrote:
>
> Dear all,
> I am trying to draw a plot using cnFillOpacityF and cnFillMode="CellFill", but it does not seem to apply the transparency.
> As soon as I change to cnFillMode="AreaFill" it applies the transparency.
> Does the transparency work with CellFill mode?
>
> I have read this thread, but it does not seem to have been answered. http://www.ncl.ucar.edu/Support/talk_archives/2012/3160.html
> Thanks for your help.
> Daniel
>
>
>
>
> ___________________________________
> Dr. Daniel Argüeso
> Post-Doc Research Fellow
> Climate Change Research Centre
> School of Biological, Earth and Environmental Sciences
> University of New South Wales,
> Sydney, NSW 2052
> Australia
>
> PHONE: (+61) 2 9385 4638
> email: d.argueso@unsw.edu.au
> http://web.science.unsw.edu.au/~danielargueso/
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 5 09:56:22 2013
This archive was generated by hypermail 2.1.8 : Thu Mar 07 2013 - 08:55:58 MST