from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479445
Consider the following test.gnuplot file:
========
plot \
x, \
"missing.dat",\
"also-missing.dat"
replot
The files missing.dat and also-missing.dat do not exist.
Run this via 'gnuplot test.gnuplot' and you get the following output:
"test.gnuplot", line 4: warning: Skipping unreadable file "missing.dat"
"test.gnuplot", line 4: warning: Skipping unreadable file "also-missing.dat"
"test.gnuplot", line 6: warning: Skipping unreadable file "missing.dat"
"test.gnuplot", line 6: warning: Skipping unreadable file "also-missing.dat"
So far, this is OK, but now I issue a replot from the WX window (key 'e')
and I get this:
"test.gnuplot", line 8: warning: Skipping unreadable file "missing.dat"
"test.gnuplot", line 8: warning: Skipping unreadable file "also-missing.dat"
The line number (8) reported here is that of the pause command, not that of
the plot or replot command, so it's a bit misleading.
Andreas
Any news ?
I don't see any easy way of fixing this. Perhaps someone else will see a clever solution.
> The line number (8) reported here is that of the pause command, not that of
> the plot or replot command, so it's a bit misleading.
Of course it is! It has to be. You issued a second replot command, while sitting inside the pause -1 command on line 8.
You get the reports about line 8 for exactly the same reason you got the reports about the scripted replot command listing line 6, not line 4: because that's exactly the line gnuplot is processing when the error occured.
Moving this to feature requests.