Loop structure inside gnuplot?

前端 未结 6 991
孤城傲影
孤城傲影 2020-11-27 10:40

Is there any way to iteratively retrieve data from multiple files and plot them on the same graph in gnuplot. Suppose I have files like data1.txt, data2.txt......data1000.tx

6条回答
  •  死守一世寂寞
    2020-11-27 11:00

    Here is the alternative command:

    gnuplot -p -e 'plot for [file in system("find . -name \\*.txt -depth 1")] file using 1:2 title file with lines'
    

提交回复
热议问题