plot_convergence function

Plot moving average