¡@

Home 

python Programming Glossary: ffit

fitting data with numpy

http://stackoverflow.com/questions/18767523/fitting-data-with-numpy

So I do coefs np.polynomial.polynomial.polyfit x y 4 ffit np.poly1d coefs Now I create a new grid for x values to evaluate.. a new grid for x values to evaluate the fitting function ffit x_new np.linspace x 0 x 1 num len x 10 When I do all the plotting.. ax1.scatter x y facecolors 'None' ax1.plot x_new ffit x_new plt.show I get the following fitting_data.png What..