import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation

long = 6*np.pi

fig, ax = plt.subplots()


ax = plt.axis([0,long,-1,1])

L=[0]
K=[np.sin(0)]
trace, = plt.plot(L, K, 'r')

def animate(i):
    L.append(i)
    K.append(np.sin(i))
    trace.set_data(L, K)
    return trace,

plt.plot([-0.50],[2.5],'o')
# create animation using the animate() function
myAnimation = animation.FuncAnimation(fig, animate, frames=np.arange(0.0, long, 0.1), \
                                      interval=100, blit=True, repeat=True)

plt.xlabel("direction de propagation")
plt.ylabel("direction de pplarisation")
plt.plot([1,2],[1,2])
plt.show()