Hi Mike,
Yes you can. All you have to do is use gsn_text:
http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_text.shtml
Here is an example
res = True
......
res_at_gsnDraw = False
res_at_gsnFrame = False
plot = gsn_csm_xy(wks,xdata,ydata,res)
tres = True
tres_at_txFontHeightF = 0.02
mlist = (/"J","F","M","A","M","J"/)
do gg = 0,dimsizes(xdata)-1
gsn_text(wks,plot,mlist(gg),xdata(gg),ydata(gg),tres)
end do
draw(wks)
frame(wks)
Adam
Michael Notaro wrote:
> I have an XY plot in which the X axis is months (Jan Year 1, Feb Year
> 1, ..., Dec Yr 1, Jan Yr 2...).
> I know how to add marks to the line. However, I would like instead to
> add letters to the line plot,
> with "J" for the first time, "F", for the second, etc..., so that it is
> apparent which month each point
> pertains to. Can I do this?
>
> Thanks,
> Mike
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- 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 Thu May 11 2006 - 16:25:20 MDT
This archive was generated by hypermail 2.2.0 : Wed May 17 2006 - 09:58:14 MDT