From: Hans-Bernhard B. <br...@ph...> - 2004-10-29 17:30:29
|
Daniel J Sebald wrote: > plot 'battery.dat' using 1:log(2) > plot 'battery.dat' using 1:sin(2) > > The second plot, is that or is that not making sense? They're both making a perverse kind of sense. 'Using' specifiers classify as extended or not depending on the presence of 'extra' enclosing parentheses, and those alone. In this sense using 1:sin(2) is just an overly complicated way of writing 'using 1:0' This can be useful in the case where you want to loop over column numbers, or have any other reason to calculate column numbers on the spot rather than hard coding them on the spot. E.g. consider this script: p 'file.dat' u 1:n n = n + 1 if (n<20) reread |