Menu

#2205 Bad data on line 1

None
closed-works-for-me
nobody
None
2019-11-02
2019-10-13
No

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

Discussion

  • Eugène PLANTEUR

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,8 +1,8 @@
     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.00152339 0.111111
     0.00205761 0.0625‬
     0.00230414 0.04‬
    -0.00243902 0.027777`
    +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
    
    • Group: -->
    • Priority: -->
     
  • Hans-Bernhard Broeker

    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?

     
  • Karl Ratzsch

    Karl Ratzsch - 2019-10-14

    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 type plot dataf us 1:2. That doesnt seem to fit here however.

    Does this

    plot '-'
    0.00152339 0.111111
    0.00205761 0.0625‬
    0.00230414 0.04‬
    0.00243902 0.027777
    e
    

    work when you c&p it into your gnuplot console?

     
  • Ethan Merritt

    Ethan Merritt - 2019-11-02
    • status: open --> closed-works-for-me
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.