I have used this example How to generate equispaced interpolating values to make the equidistant points in the data and got the following plot
I have taken the values of this scatter and interpolated them but when I check it the difference between the points is not the same. How can I make it so the difference between the points are the same.
old_indices_yn = np.arange(0,len(yn))
new_length = 50
new_indices_yn = np.linspace(0,len(yn)-1,new_length)
spl = UnivariateSpline(old_indices_yn,yn,k=3,s=0)
new_array_yn = spl(new_indices_yn)
old_indices_xn = np.arange(0,len(xn))
new_length = 50
new_indices_xn = np.linspace(0,len(xn)-1,new_length)
spl = UnivariateSpline(old_indices_xn,xn,k=3,s=0)
new_array_xn = spl(new_indices_xn)
plt.scatter(new_array_xn,new_array_yn, s=8)
plt.scatter(x,y,s=8)