On Dec 6, 2011, at 12:29 AM, Jie TANG wrote:
> hi ,ncl group.
> I draw a figure by some command:
>
> HGTprs =gbfile->HGT_PRS(5,:,:)
>
> figtype="ps"
> hgt_wks = gsn_open_wks(figtype,"./out/test_hgt")
> res=True
> hgt = gsn_contour(hgt_wks,HGTprs,res)
> ;************************************************
>
>
> and get such a figure.But now my question is
>
> how to modify the x-axis or y-axis by myself .for example .I hope
>
> the x-axis frm -200 to 200 and y-axis from -200 to 200?
Dear Jie Tang,
To modify the axes, use the special "tr" resources (TRansform):
res@trXMinF = -200
res@trXMaxF = 200
res@trYMinF = -200
res@trYMaxF = 200
You can learn more about customizing your XY plots by looking at the following example page:
http://www.ncl.ucar.edu/Applications/xy.shtml
Example 5 (xy_5.ncl) talks about trYMinF and trYMaxF.
--Mary
>
> how could I do ?
> <1,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
Received on Tue Dec 6 07:45:32 2011
This archive was generated by hypermail 2.1.8 : Fri Dec 09 2011 - 13:09:09 MST