If I run a gnuplot script and pass some arguments to it, then I refer to
them as $0, $1 etc up to 10, right?
But if I want to use functions, then when plotting I refer to column numbers
in a similar way. For ex.
sin_phi(x,y) = y/sqrt(x**2 + y**2)
cos_phi(x,y) = x/sqrt(x**2 + y**2)
vx(v2,v3,x,y) = - v2 * cos_phi(x,y) - v3*sin_phi(x,y)
vy(v2,v3,x,y) = - v2 * sin_phi(x,y) - v3*cos_phi(x,y)
v(v2,v3) = sqrt(v2**2 + v3**2)
coef = 1e-2
plot file_eqa every 2:2 u
9:10:(vx($5,$6,$9,$10)*coef):(vy($5,$6,$9,$10)*coef) with vectors head title
So now the question is: How do I do the same thing with functions when I use
gnuplot in batch mode? Because it seems to get confused with those.
View this message in context: http://www.nabble.com/batch-mode-arguments-and-column-numbers-t1312088.html#a3496260
Sent from the Gnuplot - User forum at Nabble.com.