add offset to multiple columns in gnuplot -
i trying plot multiple column file first column x , rest should y columns this:
plot for[col=2:36:1] 'datafile' using 1:col lines lc rgb 'black' notitle
this works fine want offset y columns constant value.
i tried this:
plot for[col=2:36:1] 'datafile' using 1:(col-const) lines lc rgb 'black' notitle
but doesn't work (it seems plot difference between variable col , constant value const).
is there way this? have found here how offset y column 2 column file (or specific column in file)
plot 'otherdatafile' using 1:($2-const) lines
but can expanded case?
thanks in advance,
lucian
using 1:(column(col)-const) should work
Comments
Post a Comment