The stats
command is available only since version 4.6.0. In previous versions it is possible to access some data information only after plotting. That includes e.g. the exact data ranges, which are available through the variables GPVAL_DATA_X_MIN
, GPVAL_DATA_X_MAX
etc. Use
plot 'file.dat' using 1
show variables all
To see the available variables. Then you can do something like
plot 'file.dat' using 1
# do something with GPVAL_*
replot