Gnuplot will not write data file, claims to be empty xrange and yrange

This may seem trivial, but I used Excel to manage some data from my program and then output the data in tsv format. I want to build it using gnuplot with no difficulties than plot "filename", but gnuplot creates an empty graph and gives warnings about empty xrangeand empty yrange. The data is copied below. Can anyone see what could be wrong with him?

Many thanks

 0.0000     0.0
 360.002716 0.04424679
 1260.00952 -0.053663898
 2160.00659 0.118732237
 3060.00342 0.109153613
 3960.00049 -0.002001554
 4860.00732 0.281198434
 5760.00439 0.359723032
 6660.00098 0.559242511

Update: it is strange if I copy the data above from this web page to the data file, overwriting the data that was already there, gnuplot will build it in order. It seems very strange that the above data was copied from the file in the first place. Presumably, should some formatting be lost or changed when copying and pasting?

+4
source share
2 answers

The answer is a few months later, but I had the same problem.

My problem was that gnuplot was expecting the CRLF to finish the line, but it only had the CR that dropped it.

Open the file in Notepad and see if it shows everything on one line. Notepad does not recognize only CR as line break.

+3
source

tsv, , gnuplot (, , * nix).

set datafile separator "\t"

.

0

Source: https://habr.com/ru/post/1531337/


All Articles