From: Uwe Z. <uw...@kt...> - 2004-06-01 13:12:57
|
Hi Hans-Bernhard, thanks for this incredibly fast reply! Yes I mixed up versions, partly because set datafile separator is not listed in the help, nor in the list of options when you write set on a Gnuplot 4 command line either... See my second message a minute ago, I solved the problem by using the datafile separator again... Uwe. Tuesday, June 1, 2004, 1:35:53 PM, you wrote: HBB> On Tue, 1 Jun 2004, Uwe Zimmermann wrote: HBB> [...] >> plot \ >> '030910alogg.csv' \ >> every 1:::0::0 \ >> using ($1<4700? $1/60.0-60.0:1/0):($2) \ >> '"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf'\ HBB> That's 6 %lf specifiers... >> but adding another column to the format specifier crashes Gnuplot on >> Win32 (WinXP sp1+updates): HBB> [...] >> >> "%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf,"%*[^"]",%lf,%lf'\ HBB> Now it's 8 %lf specifiers, and that's the cause of the problem. None of HBB> gnuplot's plot styles uses more than 7 'using' specifiers, so the format HBB> string isn't expected to contain more than 7 instances of %lf. You should HBB> replace the %lf for those columns you aren't going to actually use by HBB> %*lf, which parses a number but then ignores it. HBB> So the real bugs are two-fold: this limitation should be documented in HBB> 'help using', and exceeding the limit should yield an error message rather HBB> than crash gnuplot. I'll see how this can be fixed. >> Earlier I was able to plot this same datafile with GnuPlot 3.7x where >> the column separator could be redefined to be a comma instead of a >> whitespace... HBB> You're mixing up versions here, I think. I'm quite positive none of the HBB> officially released 3.7x versions had such an option; i.e. yours must have HBB> been a modified one. gnuplot 4.0, OTOH, does have this option. See "help HBB> separator". |