Gnuplot plotting data from a file up to some row

后端 未结 5 1539
逝去的感伤
逝去的感伤 2020-11-30 22:44

I have data in some text file which has let\'s say 10000 rows and 2 columns. I know that I can plot it easily by plot \"filename.txt\" using 1:2 with lines . Wh

5条回答
  •  北海茫月
    2020-11-30 23:40

    I would recommend some commandline tools like sed, grep or bash. In your example

    head -n 2000 ./file.data > temp.data
    

    and

    tail -n 1000 temp.data > temp2.data
    

    might work. But haven't tested if such large numbers work with head and tail.

提交回复
热议问题