Re: How to put marker above the Geophysical Line

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 20 2012 - 08:53:58 MDT

Hi Ziqiang,
Note that the mp resources need to be set as resources within the function that creates the plot.. Thus, a simple example:
res = True
....
res@mpGridandLimbDrawOrder = "Draw"
res@gsnDraw = False
res@gsnFrame = False
plot = gsn_csm_contour(wks, arr,res)

txres = True
txres@tfPolyDrawOrder = "PostDraw"
d = gsn_add_text(wks,plot,"Label",.5,.5,txres)
draw(plot)
frame(kws)

As the various examples show, the various DrawOrder resources need to be set in different resource lists. Hope that helps! Adam

On Mar 19, 2012, at 9:06 PM, Ziqiang Jiang <ziqiangj@yahoo.com.cn> wrote:

> Hi, Adam
>
>
> Thanks for your advice.
> I'm sorry. I forgot to tell you that it does work for function "gsn_add_text"
> by using the resource "mpGridandLimbDrawOrder", but it does not work for
> function "gsn_text_ndc". I don't know why. However, function "gsn_add_text"
> is not fit to add many text string to map.
>
> Ziqiang
> From: asphilli@ucar.edu
> Date: Mon, 19 Mar 2012 20:16:29 -0600
> To: ziqiangj@yahoo.com.cn
> CC: ncl-talk@ucar.edu
> Subject: Re: How to put marker above the Geophysical Line
>
> Hi Ziqiang,
> Try setting mpGridandLimbDrawOrder = "Draw"
> http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpGridAndLimbDrawOrder
>
> That resource controls the lat/lon grid lines, and is referenced at the top of the draw order page I sent you earlier. Note that you might have to experiment with the different DrawOrder resources to get things drawn in the order you desire. Hope that helps..
> Adam
>
> On Mar 19, 2012, at 7:22 PM, Ziqiang Jiang <zqjiang86@hotmail.com> wrote:
>
> Hi, Adam
>
> Thank you for help. With your help, I solve that problem.
> However, when I use "gsn_text_ndc", lon/lat line will lie above the "character" or "digit",
> as figure "dd.png" showed. I hope that lon/lat line will lie below the "character" or "digit",
> how to solve this problem?
>
> Ziqiang
>
> Date: Mon, 19 Mar 2012 17:23:00 -0600
> From: asphilli@ucar.edu
> To: ncl-talk@ucar.edu
> Subject: Re: How to put marker above the Geophysical Line
>
> Hi Ziqiang,
> See the draw order web page here:
> http://www.ncl.ucar.edu/Applications/draworder.shtml
>
> Assuming you are drawing the circle via a gsn_polymarker (or gsn_add_polymarker) call, you would set tfPolyDrawOrder = "PostDraw" within the resource list that you pass to gsn_polymarker. See examples #1 and 4 for examples of doing this with other polyline/polymarker/polygon drawing examples..
>
> If that doesn't answer your query please respond to ncl-talk.
> Adam
>
> On 03/19/2012 05:01 PM, Ziqiang Jiang wrote:
> Hello,
>
> As figure showed, circle line was partly put below the Geophysical Line.
> And I don't know how to fully put marker above the Geophysical Line.
> who could tell me the resource for "mp"?
>
> Thank you very much
> Ziqiang
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> --
> ______________________________________________________________
> Adam Phillips asphilli@ucar.edu
> NCAR/Climate and Global Dynamics Division (303) 497-1726
> 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
> <dd.png>
> _______________________________________________
> 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
> _______________________________________________
> 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
Received on Tue Mar 20 08:52:55 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 20 2012 - 15:27:15 MDT