Matplotlib - Animations
You want to save an animation as a GIF but also want to control the frame rate to 10 frames per second. Which of the following code snippets correctly saves the animation with these requirements?
import matplotlib.animation as animation
# anim is a FuncAnimation object
anim.save('animation.gif', ...)