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

From: Mary Haley (haley AT XXXXXX)
Date: Mon Nov 17 2003 - 17:04: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
>

Liping (and Adam),

Just a tiny correction, be sure to remove the line:

         "gsnXRefLine": 0.0 ; draw a reference line

from the "setvalues" block. The gsn resources are special ones that
are recognized only by the gsn plotting scripts, and are *not*
recognized by setvalues.

--Mary

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



This archive was generated by hypermail 2b29 : Tue Nov 18 2003 - 14:58:53 MST