Make gnuplot column as a variable

Consider a case where there is a complicated manipulation of the columns which you wish to do before final plotting. The expression can be made into a variable

a = ‘column(4)/column(3)’
but this will not work if you just put the system as

pl … u 1:a ..

One needs to use this

pl[][] filename1 u 1:(@a) ..



Leave a comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: