Re: Plot Several Contour/Images on One Plot

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed, 24 Jun 2009 16:13:39 -0600

Hi Bruce,
When cnFillMode = "RasterFill", you are not allowed to set any areas,
including areas set to _FillValue, to transparent. Because of that, the
entire plot is filled with a color. (For instance, you are likely
setting some contour fill colors, missing data is set to white, etc.)

When you overlay a raster-filled plot (let's call it Plot B) on another
plot (Plot A), plot A is completely overdrawn.

Try setting cnFillMode = "CellFill". it's quite similar to Raster Fill
and allows transparency. But note, if your plots do not have areas of
missing data, and thus you are overlaying full color filled fields on
top of one another, then the latest plot will be the only one that is seen.
Hope that helps,

Lunde, Bruce N CIV NAVOCEANO, NP1 wrote:
> Hello,
> I am trying to plot several images on one
> plot, but the last image I plot destroys
> the previous one(s).
> I set up a blank basemap (like is done for
> the spaghetti plots).
> I call gsn_csm_contour with Draw and Frame
> set to False:
> ires_at_gsnFrame=False
> ires_at_gsnDraw=False
> ires_at_cnFillOn=True
> ires_at_cnFillMode="RasterFill"
> h1 = gsn_cms_contour(wks,data1,ires)
> overplot(plot_base,h1)
> h2 = gsn_cms_contour(wks,data2,ires)
> overplot(plot_base,h2)
> If I only plot one image and overplot lines,
> contours, points, etc. everything is fine.
> The problem comes in when I try to plot two
> or more images.
> I can send some code if needed, but I was
> hoping to get a general methodology answer.
> Thanks, Bruce
> ------------------------------------------------------------------------
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

Adam Phillips			   
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Jun 24 2009 - 16:13:39 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 25 2009 - 06:30:15 MDT