According to matplotlib's documentation, FuncAnimation
calls a funtion repeatedly to make an animation.
The question is, how should I tell FuncAnimation()
to stop when no more image data available?
If you know how many frames are in your image data then make sure among the other arguments in FuncAnimation()
that you have:
frames=#frames
repeat=False
It then stops when it reaches the frame limit. Not perfect but this seems to be a common concern without a proper solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With