Lagrange, Newton, Interpolation, Python, Mathematics.
for i in range(1,len(x)): g1 = fig.add_subplot(len(x)/2,2,i) g1.plot(xx, lagrange_interpolation(x[i-1:],y[i-1:],xx)) g1.scatter(x,y) plt.grid(True, which='both') plt.axvline(x=0, color='k') plt.axhline(y=0, color='k') The above code will give us these beautiful graphs. seventh order interpolation