Values on the x-axis

Values on the x-axis

Post by Giampiero » Sun, 28 Jan 2007 23:14:52


Hi,
how can I visualize on the x- axis only the discrete data that I'm
plotting from a file?
This is my file:
1 0.92
2 0.93
3 0.89
4 0.88
I want to see only 1, 2, 3 and 4 on the x-axis.

Thanks.
 
 
 

Values on the x-axis

Post by merrit » Mon, 29 Jan 2007 02:28:44

In article < XXXX@XXXXX.COM >,


Version 4.2 answer:

plot "datafile" using 1:2:xticlabels(1)



--
Ethan A Merritt

 
 
 

Values on the x-axis

Post by Hans-Bernh » Mon, 29 Jan 2007 05:33:16


In this special case, it's easy:

set xtics 1
set xrange [1:4]
plot 'file'