Skip to content
Advertisement

How to overwrite animate method? matplotlib.animation.FuncAnimation

I want to hand some additional arguments to the animate_all funtion. Therefore, I wrote the new method like this:

JavaScript

However, I have problems calling the method. None of the attempts below worked.

JavaScript

Frames usually gets passed “automaticly” but not if I extended the function. Does somebody have a solution?

Advertisement

Answer

Here is an example of how you can use fargs with an animation function.

JavaScript

Which outputs:
Animated gif

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement