Plotting Average curve for points in gnuplot

后端 未结 5 649
夕颜
夕颜 2020-12-19 10:03

[Current]

I am importing a text file in which the first column has simulation time (0~150) the second column has the delay (0.01~0.02).

1.000000 0.01         


        
5条回答
  •  忘掉有多难
    2020-12-19 10:22

    I wanted to comment on Franky_GT, but somehow stackoverflow didn't let me.

    However, Franky_GT, your answer works great!

    A note for people plotting .xvg files (e.g. after doing analysis of MD simulations), if you don't add the following line:

    set datafile commentschars "#@&"
    

    Franky_GT's moving average code will result in this error:

    unknown type in imag()
    

    I hope this is of use to anyone.

提交回复
热议问题