[ncl-talk] adding a text

Mary Haley haley at ucar.edu
Sat Apr 2 23:31:17 MDT 2016


In order to use "gsn_add_text", which attaches text to a plot, you must
give it X and Y coordinates that fall in the range of your plot's
coordinate space.

Your plot "mp" is in lat/lon coordinates, going from about 5 to 21 degrees
north, and 69 to 86 degrees east.  Thus, the "x" input to gsn_add_text
should be a longitude value that's in the 69-86 range, while the "y" input
should be in the latitude range 5-21.

Just for fun, try the same values you have for your commented call to
gsn_add_polymarker:

    KKA_text             = gsn_add_text(wks,mp,"KKA",77.56,12.98,txres)


--Mary



On Sat, Apr 2, 2016 at 10:00 PM, Geeta Geeta <geetag54 at yahoo.com> wrote:

> Hi.
> I have to add a text to my plot. I am unable to find out the postion of
> the (xand Y points) of the plot. Changed randomly many values to the x and
> y cordinates but unable to add the text.
> I am attaching my plot and the ncl file
>
> Geeta.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160402/7ebd9802/attachment.html 


More information about the ncl-talk mailing list