Re: put map on top

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Thu Jan 13 2011 - 10:25:47 MST

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
Received on Thu Jan 13 10:25:52 2011

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