|
From: Alan G I. <ai...@am...> - 2014-02-08 17:48:25
|
The documentation for FuncAnimation says http://matplotlib.org/api/animation_api.html#matplotlib.animation.FuncAnimation Makes an animation by repeatedly calling a function func, passing in (optional) arguments in fargs. frames can be a generator, an iterable, or a number of frames. I do not think FuncAnimation can be understood from this documentation. (At least, I did not understand it.) I think it should read: Makes an animation by repeatedly calling a function `func`, passing in a value from `frames` and any (optional) arguments in `fargs`. `frames` can be a generator, an iterable, or an integer number of frames. Passing `frames=n` for integer `n` is equivalent to passing `range(n)`. Does this seem correct? Thanks, Alan Isaac PS It would be nice if repeat accepted an integer number of repetitions. |