|
From: Hans-Bernhard B. <HBB...@t-...> - 2010-08-08 19:07:44
|
On 07.08.2010 22:24, LukasP wrote: > I have a datafile. I need to plot ratio of two columns, but selection of the > columns depends on variable KEY, which is passed to the plotting script. You'll probably need the long form of a column data reference, column(<n>), instead of the short $<n>, for that. > plot "IFs/ILs/Res/L31-" . WHAT . EXT . ".xF3" u 1:($3/$2) w lp t "CEN-L31" > > but with "$3" and "$2" are varying (or are depending on the KEY variable). Varying / depending: how? > Is there a way how to get the ratio of the columns, depending on a variable > (KEY)? Maybe using macros, eval? You're trying too hard. You need something like using 1:(column(KEY+1)/column(KEY)) > And another question - > - Is it possible to "continue" plotting? Not really. But you're probably looking for "help replot". > This would help me plotting two columns of a datafile, that plotting ratios > of two its columns. No, it won't. |