So you basically have a column of data (which we will call x) and you want to plot coordinates by using that x and a y which is a formula?
I suspect this will work: Code: plot "datafile.dat" using 1:(m * $1 + b)
You will obviously need to fill in m and b.
This works by telling plot which columns to use. Here we say that the first column will be used for the x value, and the expression that we have given will be used for the y value. In that expression, $1 refers to the first column of the datafile.
I hope this helps! You can learn more at: Using
__________________
DISTRO=Ubuntu
Registered Linux User #388732
|