gnuplot: plotting a file with 4 columns all on y-axis

后端 未结 2 1611
星月不相逢
星月不相逢 2021-01-30 06:52

I have a file that contains 4 numbers (min, max, mean, standard derivation) and I would like to plot it with gnuplot.

Sample:

24 31 29.0909 2.57451
12 31         


        
2条回答
  •  滥情空心
    2021-01-30 07:52

    Just to add that you can specify the increment in the for loop as third argument. It is useful if you want to plot every nth column.

    plot for [col=START:END:INC] 'file' using col with lines
    

    In this case it changes nothing but anyway:

    plot for [col=1:4:1] 'file' using col with lines
    

提交回复
热议问题