|
From: Thomas S. <t.s...@fz...> - 2007-10-26 10:20:21
|
this is not a bug, it's a feature, it's documented (see 'help call'): NOTE: there is a clash in syntax with the datafile `using` callback operator. Use `$$n` or `column(n)` to access column n from a datafile inside a `call`ed datafile plot. Peter Orthmann wrote: > > G N U P L O T > Version 4.2 patchlevel 2 > last modified 31 Aug 2007 > System: MS-Windows 32 bit > > # Bug found by Peter Orthmann 2007-10-26 > # 'plot' - cannot access line number in datafile when called by script > using arguments > # example with four files > # execute MyScript and observe that MyPlot1 do not finish > # execute MyPlot2 and se that ($0+10):1 works here > > # MyScript.gp file: > call 'MyPlot1.gp' 'MyData.dat' > > # MyPlot1.gp file: > plot '$0' using 0:1 title 'This work MyPlot1.gp was executed' w l > pause -1 'Hit Return' > plot '$0' using ($0*10):1 title 'This do not work - plot error' w l > pause -1 'Hit Return' > > # MyPlot2.gp file: > plot 'MyData.dat' using ($0*10):1 title 'This work' w l > pause -1 'Hit Return' > > # MyData.dat file: > 4 > 2 > 3 > 8 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > gnuplot-bugs mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs > > -- View this message in context: http://www.nabble.com/Bug-report-tf4696124.html#a13424409 Sent from the Gnuplot - Bugs mailing list archive at Nabble.com. |