You need to use tmXBMode, tmXBValues, and tmXBLabels:
res@tmXBMode = "Explicit"
res@tmXBValues = (/1,3,5,7/) ; or whatever values
you want
res@tmXBLabels = "" + (/1,3,5,7/) ; these should be
strings
You can use a variable:
values = ispan(1,7,2)
res@tmXBMode = "Explicit"
res@tmXBValues = values
res@tmXBLabels = "" + values
Normally, if you are usually equally-spaced values for the tickmarks,
you can use the "Manual" mode instead of
"Explicit". The Explicit mode is for when you have random tickmarks
that you want.
See:
http://www.ncl.ucar.edu/Applications/tickmarks.shtml
for more tickmark examples.
--Mary
On Jun 11, 2010, at 12:00 AM, Li, Yongzuo wrote:
> Hi,
>
> I use
>
> ftp://ftp.caps.ou.edu/users/yli/sawtooth/hybrid-pure3dvar-sawtooth.ncl
>
> to make
>
> ftp://ftp.caps.ou.edu/users/yli/sawtooth/sawtooth-hybrid-pure3dvar.pdf
>
> How can I add more label on X axis bottom, e.g 1, 3, 5.
>
> Thanks.
>
> Yongzuo
> _______________________________________________
> 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 Fri Jun 11 06:23:34 2010
This archive was generated by hypermail 2.1.8 : Fri Jun 11 2010 - 09:33:23 MDT