I generated two location lists (x and y coordinates). Now I want to animate the movement(changing x and y) element after element.
The FuncAnimation function of matplotlib seems not to work. The animate(i) function usually uses the timedependent changes of x and y; so a function of i. But I know the timestep and I don't want to implement this dependency in the animate function.
So imagine the lists:
- x = [2,5,1,5,2,8,5,8]
- y = [5,3,7,2,0,5,9,3]
with a known timestep
- dt = 0.1 #seconds
How can I animate this? Thanks in advance!