from scipy import interpolate def f(x): x_points = [0, 100, 105, 110, 300, 500, 550, 725, 800, 950, 960, 970, 1000] y_points = [30, 30, 30, 30, 40, 30, 28, 26, 24, 21, 20, 19, 5] tck = interpolate.splrep(x_points, y_points) return interpolate.splev(x, tck) xrange = range(0, 1001, 1) #for x in xrange: # print(str(f(x))+",") print("") rotation = 0 while rotation <= 90: print(str(rotation)+",") rotation = rotation + 0.09