Re: hello everyone!-------for question

From: Adam Phillips (asphilli AT XXXXXX)
Date: Mon Nov 17 2003 - 17:16:30 MST


>Can any one help me to draw a reference line in zonal
>average plot:
>
>
> res@gsnZonalMean = True ; Draw a Zonal mean
> plot(0) = gsn_csm_contour_map_ce(wks,ABS, res)
> setvalues plot@xy
> "trXMinF" : -200
> "trXMaxF" : 400
> "gsnXRefLine": 0.0 ; draw a reference line
> end setvalues
>
>
>but "gsnXRefLine": 0.0 do not work, how can I do
>that?
>Please answer as early as convinient!
>
>Thank you !
>
>liping

Liping,

Try this:

res@gsnZonalMean = True ; Draw a Zonal mean
plot(0) = gsn_csm_contour_map_ce(wks,ABS, res)
setvalues plot@xy
        "trXMinF" : -200
        "trXMaxF" : 400
        "gsnXRefLine": 0.0 ; draw a reference line
end setvalues

resp = True ; polyline mods desired
resp@gsLineThicknessF = 2.0 ; thickness of lines
dum = gsn_add_polyline(wks,plot@xy,(/0,0/),(/-200,400/),resp)

I haven't tested it, but I believe it should work.

Adam

>
>
>__________________________________
>Do you Yahoo!?
>Protect your identity with Yahoo! Mail AddressGuard
>http://antispam.yahoo.com/whatsnewfree
>_______________________________________________
>ncl-talk mailing list
>ncl-talk AT ucar.edu
>http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------------------------------------------------------
Adam Phillips email: asphilli AT ucar.edu
Climate and Global Dynamics Division tel: (303) 497-1726
National Center for Atmospheric Research fax: (303) 497-1333
P.O. Box 3000
Boulder, CO 80307-3000 http://www.cgd.ucar.edu/~asphilli

_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Tue Nov 18 2003 - 07:20:51 MST