[[Python]] [[matplotlib pyplot]] ```python from matplotlib import animation ``` ## FuncAnimation makes an animation by repeatedly calling a function ```python anim = animation.FuncAnimation(fig, func, init_func=init, frames=10, repeat=False) ``` Parts of an animation: `fig`: a Figure object `func`: the function to call The function should look something like: ```python func(i): #do something with each i ```