use an up-to-date version of gnuplot and store the 'old' value to a variable
inside the 'using' option:
y_old=0
plot 'datafilename' using 1:(temp=$2-y_old , y_old=$2 , temp)
Bernardo Trindade wrote:
>
> Hi y'all, I'm a bit experienced with GNUPlot and I'm trying to make a plot
> of a data file and the value that I wanted plotted is the difference
> between the value in the row i minus the value in row i-1. I know that
> using $ you can perform operation with values from different columns but I
> don't know how to do it for different rows at the same column.
> Does anyone here have a clue on how (and if) GNUPlot does that?
>
> Thanks in advance! :)
> Bernardo.
>
--
View this message in context: http://old.nabble.com/Row-operations-tp32793764p32802379.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|