From: Thomas S. <t.s...@fz...> - 2010-04-23 07:24:47
|
when 'calling' a script, the '$' must be doubled. http://www.gnuplot.info/docs/gnuplot.html#x1-9000053 Piotr Bandyk wrote: > > Hello, > > I use gnuplot quite often to plot data output from computer simulations. > I usually make scripts to save time on making a batch of plots. I think I > may have found a bug when trying to multiply the data. When trying to > multiply the values in column 2 by 2, for example > > plot 'file.dat' using 1:($2)*2 > > this will work when running the plot command from the gnuplot terminal... > but it seems to have problems when calling a script with exactly the same > lines. It gives values of zero. I've double checked this on the most > recent version 4.4 of gnuplot. > > Cheers, > Piotr > ------------------------------------------------------------------------------ > _______________________________________________ > gnuplot-bugs mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs > > -- View this message in context: http://old.nabble.com/-Gnuplot-bugs--error-in-script-tp28330643p28337635.html Sent from the Gnuplot - Bugs mailing list archive at Nabble.com. |