I am trying to plot from a multiple column file where the first column is the x and the rest should be y columns like this:
plot for[col=2:36:1] 'datafile' using 1:col with lines lc rgb 'black' notitle
This works fine but what I want to do is to offset all the y columns by a constant value.
I tried something like this:
plot for[col=2:36:1] 'datafile' using 1:(col-const) with lines lc rgb 'black' notitle
but it doesn't work (it seems to plot the difference between the variable col and the constant value const).
Is there a way to do this? I have found here how to offset the y column for a 2 column file (or a specific column in a file)
plot 'otherdatafile' using 1:($2-const) with lines
but can this be expanded for my case?
Thanks in advance,
Lucian