From: Thomas S. <t.s...@fz...> - 2009-02-04 09:59:30
|
seems to be a timing problem. the following script triggers the error on (all self-compiled on opensuse 10.2) 4.2.2, 4.2.3 and 4.3-cvs: set term x11 kb(n) = (n/1024.0) splot '1234567890123456.dat' u 1:2:(kb($3)) t 'r', \ '123456789012345.dat' u 1:2:(kb($3)) t 'o' g(x,y) = d*x*y pause 1 fit g(x,y) '123456789012345.dat' using 1:2:3:(1) via d other terminals (i tried postscript and dumb) don't show this behaviour. moving the function definition to the top of the script or defining the variable 'd' there makes the error go away. moving 'pause 1' one line up does the same. any ideas what i should test next? Hans-Bernhard Bröker-2 wrote: > > Dan Tsafrir wrote: > >> 1: >> This bug report describes how gnuplot's (x,y,z)-fit may erroneously >> fail on "undefined variable" when fitting it against a certain data >> file, and how the problem may go away if changing the name of this >> file. (I'm only able to make the problem go away on gnuplot version >> 4.2.2; conversely, on 4.2.4 the problem persists.) > > Actually, you seem to only have changed a file name in an splot command > a couple of lines before the 'fit'. > > And FWIW the bug doesn't reproduce on version 4.2.3 in Windows. > > Which, to me, suggests this might be something particular to the Debian > release package. Could you build your own gnuplot from our official > source tarball and see if this still triggers? > > Oh, and you may want to lose the bigger-than-one size settings. Please > see "help set size". > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > gnuplot-bugs mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs > > -- View this message in context: http://www.nabble.com/-Gnuplot-bugs--strange-bug-involving-gnuplot%27s-x%2C-y%2C-z-fit-and-data-file-names-tp21782645p21827469.html Sent from the Gnuplot - Bugs mailing list archive at Nabble.com. |