Re: How to put marker above the Geophysical Line

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 20 2012 - 09:11:04 MDT

Ziqiang,

I wanted to address your other comment about "gsn_add_text is not fit to add many text string to map".

You can pass an array of text strings and X/Y locations for each string to gsn_add_text in one call. Here's an example:

    . . .
    map = gsn_csm_contour_map(wks,data,res)
    . . .
    strings = (/"one","two","three"/)
    lat = (/10,20,30/)
    lon = (/90,90,90/)
     txres =True
    txres@txFontHeightF = 0.01
    txid = gsn_add_text(wks,map,strings,lon,lat,txres)

If you want each text string to be a different size, color, font, etc, then you will need to do this in a loop.

--Mary

On Mar 19, 2012, at 9:06 PM, Ziqiang Jiang 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 09:11:23 2012

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