Re: overlay

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 14 Jul 2008 08:26:33 -0600 (MDT)

On Mon, 14 Jul 2008, James Correia wrote:

> I am using the overlay function to overlay 2 plots onto a base plot:
>
> plot = gsn_csm_vector_scalar_map( ...)
> plota = gsn_csm_vector_scalar_map( ...)
> plotb= gsn_csm_vector_scalar_map( ...)
>
> overlay(plot,plota)
> overlay(plot,plotb)
> draw(plot)
> frame(wks)
>
> This doesnt work and the error below appears twice.
>
> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member
>
> What am I missing?

Hi James,

A map plot can't be overlaid on another map plot. Generally, you only
want to create the map once, and overlay contours, vectors, or
streamlines.

I would try this:

  plot = gsn_csm_vector_scalar_map( ...)
  plota = gsn_csm_vector_scalar( ...)
  plotb = gsn_csm_vector_scalar( ...)

For plota and plotb, then, you will need to make sure you're
not setting map resources, or you will get lots of warning messages.

--Mary

> --
> James Correia Jr.
> Post Doc
> Climate Physics Group, PNNL
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 14 2008 - 08:26:33 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 14 2008 - 10:44:23 MDT