So, I know this is the most basic thing in gnuplot, but it won't work anymore for some reason: I have this .txt doc with two columns of numbers:
0.00152339 0.111111
0.00205761 0.0625
0.00230414 0.04
0.00243902 0.027777
There is litterally no more or less than that, but when I type in plot 'graph1.txt'
, gnuplot returns this error: "Bad data on line 1 of file graph1.txt". I've tested it with even "simpler" numbers, but still the same error. I don't regularly use gnuplot, but it never happened to me, and I reallly don't nuderstand why it won't plot a simple list of coordinates.
Thanks for the help :D
Diff:
That effect does not reproduce here. That leaves either unknown properties of the actual data ile on your system (which did not survive copy-pasting into this web page), or of your gnuplot installation os possible root causes. Might there be some non-standard settings in your local gnuplot startup files?
You could attach the file to your post.
One sees this same error with
plot dataf
when the first line in the file is unreadable (e.g. contains text without a hash mark in front), but it vanishes if you typeplot dataf us 1:2
. That doesnt seem to fit here however.Does this
work when you c&p it into your gnuplot console?