gnuplot: How to plot each line of a data file as Y and incremental X

前端 未结 2 543
我寻月下人不归
我寻月下人不归 2020-12-30 03:05

I have a data file containing 30 columns and N rows. Each rows correspond to 30 values of function f(x) for x={1,...,30}. The data file has following pattern:



        
2条回答
  •  旧巷少年郎
    2020-12-30 03:36

    UPDATED based on @Christoph's comment:

    plot for [i=2:30] 'data.dat' using (i-1):(column(i)) with linespoint
    

提交回复
热议问题