Loop structure inside gnuplot?

前端 未结 6 1005
孤城傲影
孤城傲影 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:08

    Use the following if you have discrete columns to plot in a graph

    do for [indx in "2 3 7 8"] {
      column = indx + 0
      plot ifile using 1:column ;  
    }
    

提交回复
热议问题