import numpy as np
import matplotlib.pyplot as plt
from scipy import interpolate

x = np.arange(0, 2.25*np.pi, np.pi/4)
y = np.sin(x)
f = interpolate.interp1d(x, y)

xnew = np.arange(0,2.25*np.pi, np.pi/4)
ynew = f(xnew)
plt.plot(x,y,'o',xnew,ynew,'-')
plt.title('Lineare Interpolation')
plt.show()
