Speed of animation with matplotlib.animation
Peter Otten
__peter__ at web.de
Tue Jun 19 05:47:26 EDT 2018
ast wrote:
> Le 19/06/2018 à 10:57, Peter Otten a écrit :
>> ast wrote:
>>
>>> I noticed that the speed of animations made
>>> with module matplotlib.animation always seems
>>> wrong.
>>
>>> dt = 0.1 # 100 ms
>>
>>> interval : number, optional
>>>
>>> Delay between frames in milliseconds. Defaults to 200.
>>>
>>>
>>> What's wrong ?
>>
>>>From the above I would conclude that you get a 100 ms delay with
>>
>> dt = 100
>>
>>
>
> So the animation should last 200*0.1 = 20s
> but it is twice faster
No, with dt = 100 it should last
200 * 100ms = 20.000ms = 20s
with dt = 0.1 it should last
200 * 0.1ms = 20ms = 0.02s
but your computer is probably not fast enough for that.
More information about the Python-list
mailing list