> I am trying to find a way to plot only the last n records of a data file. I
> figured I would ask here before writing something in perl.
A first shot for Unix-like systems might be:
plot '< tail -20 datafile'
You can't use a variable instead of that '20'.
Quote:> I was thinking along the lines of plot the whole data file with xrange
> autoscaled, then somehow readback the xmax value from gnuplot and then set
> xrange [xmax - delta:] and replot. It is not obvious to me how to read back
> the xmin and xmax values.
It's not possible in current gnuplot, so stop searching. You can't get
at the autoscaled axis ranges as user-visible variables, currently.
Not without writing out a 'save' file and analysing it with external
tools, at least.
Even if all the snow were burnt, ashes would remain.