|
From: fly a. <vic...@gm...> - 2006-05-11 19:30:27
|
Hans-Bernhard Br=C3=B6ker wrote: >=20 > Markus Feldmann wrote: >=20 >> I have got a data file with some values. >> Therfor i wanna subtract some pairs of values and then plot them. >=20 > *Which* pairs to you want to subtract from each other? >=20 >> As I know you can select values in a data file by the "using" command, >> but I think there is no possibility to calculate this values before i >> plot this? >=20 > If what you're trying to do isn't something like >=20 > =09plot 'data' using 1:($2-$3) >=20 > then gnuplot can't do it (--> 'help using'). In that case, you have to= =20 > do the work outside, in a data preconditioning program, which you can=20 > then use from inside gnuplot like this >=20 > =09plot "< program data" >=20 > See 'help datafile special' >=20 Couldn't one just write a function and do f(x,y)=3Dx-y plot 'file' u 1:(f($2,$3))? It would probably be easier than reformatting input files Victor -- View this message in context: http://www.nabble.com/get-data-then-calculate= -and-then-plot-t1601136.html#a4347300 Sent from the Gnuplot - User forum at Nabble.com. |