Re: put map on top

From: xiaoming Hu <yuanfangcan_at_nyahnyahspammersnyahnyah>
Date: Thu Jan 13 2011 - 11:21:00 MST

Hello Adam

I now have the following in my script
  res@gsnDraw = False ; don't draw yet
  res@gsnFrame = False
  res@mpFillDrawOrder = "PostDraw" ; draw continental outline last
  res@mpOutlineDrawOrder = "PostDraw" ; draw the map outline last
  res@mpGridAndLimbDrawOrder= "PostDraw" ; areas before map gets set
  res@mpPerimDrawOrder = "PostDraw" ; areas before map gets set
  res@gsnMaximize = True
  res@gsnPaperOrientation = "portrait"

It seems work

Thanks
Xiaoming

> Date: Thu, 13 Jan 2011 10:25:47 -0700
> From: asphilli@ucar.edu
> To: ncl-talk@ucar.edu
> Subject: Re: put map on top
>
> Hi Xiaoming ,
> Try adding the following resources:
> res@gsnDraw = False ; do not draw the plot
> res@mpOutlineDrawOrder = "PostDraw" ; draw the map outline last
>
> and then draw the trajectories and map and advance the frame like this:
> plot = gsn_csm_map(wks,res)
> gsn_polyline (wks, plot, 360-lat_long(:,1) , lat_long(:,0), resp)
> draw(plot)
> frame(wks)
>
> The mpOutlineDrawOrder resource may or may not be necessary. Let the
> group know if that doesn't work. Adam
>
> On 01/13/2011 10:18 AM, xiaoming Hu wrote:
> > Hello
> >
> > In the attached figure, I would like to put the map on the top of the
> > trajectories. How could I do that ?
> >
> > For the current figure, I used
> > plot = gsn_csm_map(wks,res) to draw the map
> > and used
> > gsn_polyline (wks, plot, 360-lat_long(:,1) , lat_long(:,0), resp)
> > to draw the trajectories.
> >
> > I tried to overlay another map on the top of everything by adding
> > plot2 = gsn_csm_map(wks,res)
> > overlay(plot,plot2)
> > which apparently didn't work out since "A map plot can't be overlaid on
> > another map plot."
> >
> > Is there any way I could put a map at the top?
> >
> > Thanks
> >
> > Xiaoming
> >
> >
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> --
> __________________________________________________
> Adam Phillips
> asphilli@ucar.edu
> National Center for Atmospheric Research tel: (303) 497-1726
> Climate and Global Dynamics Division fax: (303) 497-1333
> 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
                                               

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Figure2_LargerAreaTrajectories_Since1900.png
Received on Thu Jan 13 11:21:17 2011

This archive was generated by hypermail 2.1.8 : Tue Jan 25 2011 - 14:22:16 MST