Hi Ozan,
I would try changeing the order in which things are drawn. Instead of this:
;;DRAW THE LEGEND;;
do i=0, dimsizes(markercodes) - 1
leg_symbol_res_at_gsMarkerIndex = markercodes(i)
gsn_polymarker_ndc(wks,symbol_x_values(i),symbol_y_values(i),leg_symbol_res)
gsn_text_ndc(wks,labels(i),label_x_values(i),label_y_values(i),leg_label_res)
end do
panelres = False
gsn_panel(wks,(/map1,map2/),(/2,1/),panelres)
end
Try this:
panelres = True
panelres_at_gsnFrame = False
gsn_panel(wks,(/map1,map2/),(/2,1/),panelres)
;;DRAW THE LEGEND;;
do i=0, dimsizes(markercodes) - 1
leg_symbol_res_at_gsMarkerIndex = markercodes(i)
gsn_polymarker_ndc(wks,symbol_x_values(i),symbol_y_values(i),leg_symbol_res)
gsn_text_ndc(wks,labels(i),label_x_values(i),label_y_values(i),leg_label_res)
end do
frame(wks)
end
Adam
ozan mert gokturk wrote:
> Hi Mary,
>
> I want to put a legend for my symbols, over a map panel (not below it, as in
> polygons example 8 on NCL web site), and want to do this by using
> gsn_polymarker_ndc and gsn_text_ndc. But the legend is placed behind the panel,
> and becomes invisible. Is there a way to put it on the panel and make it
> visible? Thank you for your help (my code and data file are in the attachment).
>
> --Ozan
>
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Tue Aug 29 2006 - 09:24:21 MDT
This archive was generated by hypermail 2.2.0 : Wed Aug 30 2006 - 07:43:22 MDT