spikecontrol wrote:
>
> Hey All
> New to gnuplot!!
> I want to use gnuplot to print data from a serial commport in realtime.
> What i have done so far is got a terminal program that can
> log to a file while at the same time gnuplot is reading from the file.
> What i would like though is not have to send the xAxis values each time
> from the
> commport to the file. My question is, is it possible to get gnuplot to
> take a colum
> of data from a file plot these values on the yaxis, for example colum1
> row1 is sample 1,
> therefore x should automtically be 1 and the value for y is the data. This
> is something
> like Excel when you grab a colum of data, it automatically creates an
> xaxis?
>
plot 'datafile' using 1
see:
http://www.gnuplot.info/docs/node133.html
spikecontrol wrote:
>
> Also when i run the script to do this, i sort of loose control of gnuplot,
> it keeps
> redrawing the graph even if i have stopped writing to the file from the
> commport and
> i can't pause it or stop it. Is it possible to get gnuplot to stop once it
> has reached the end of the file?
>
do you reread the file every time the plot is updated?
if yes, the only way to stop gnuplot from reading it
is to delete or rename the file.
--
View this message in context: http://www.nabble.com/Auto-increment-x-axis-tp23234526p23257914.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|