Re: can't overlay two filled contours?

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Fri Oct 25 2013 - 09:14:26 MDT

Hi Paula,
I believe it matters whether you are setting res2@cnFillMode =
"RasterFill". Areas of _FillValue (or areas beyond the range of the
grid) are set to transparent with cnFillMode = "AreaFill" (=default) or
cnFillMode = "CellFill". However, if cnFillMode = "RasterFill", then
transparency is not supported, and those areas set to _FillValue or
outside the range of the grid are set to the background color (usually
white)..

http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillMode
http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnOutOfRangeFillColor

If you are setting res2@cnFillMode = "RasterFill", see if changing that
resource to "CellFill" gets your overlay working.

If the above does not apply, please include your complete resource list
/ plotting section of your script in your reply to ncl-talk.. Adam

On 10/24/2013 06:38 PM, Paula Doubrawa wrote:
> Hello, all!
>
> I am overlaying filled contours on a map (basic overlay procedure, see
> below).
>
> The different plots cover different regions of my map.
>
> If I plot one with filled contours and the other without filled
> contours (only lines) then it works!
>
> If I try to plot them both with filled contours, only the last one to
> be overlaid appears in the final plot, it's overwriting the first plot
> that was overlaid!
>
> Has anyone run into this?!
>
> Any help appreciated!
>
> Thank you very much
> Paula
>
> /map=gsn_csm_map(wks,mpres)/
> /plot1=gsn_csm_contour(wks,data1,res1)/
> /plot2=gsn_csm_contour(wks,data2,res2)/
> /
> /
> /overlay(map,plot1)/
> /overlay(map,plot2)/
> /
> /
> /draw(map)/
> /frame(wks)/
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
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 Fri Oct 25 09:14:36 2013

This archive was generated by hypermail 2.1.8 : Fri Nov 01 2013 - 08:58:14 MDT