[Thread Prev][Thread Next][Index]

Re: Integer axis



On Wed, 6 Apr 2005, hanh nguyen wrote:
> I want to define axis as integer vary from 1 to 15 like that:
> Def axis/x=1:15:1 xax
> Def grid/x=xax gr1
> File/var=mydata/gr=gr1 ³data²
>
> when I plot mydata, xax is real i.e. 1.0.....15.0
> Do you know what can I do to have integer instead of real values?

Hi Hanh,
	That is just a formatting issue for the axis labels.  Ferret
always treats axes as real numbers but you can reformat what you
see on the plot with the "ppl xfor" command (there is a "ppl yfor"
command for reformatting the y-axis value labels too.)

In your case you would

plot/set mydata
ppl xfor,(i2)
ppl plot

Good luck,
Mick



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement