Le 19/06/2018 à 11:47, Peter Otten a écrit :
ast wrote:
Le 19/06/2018 à 10:57, Peter Otten a écrit :
ast wrote:
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
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 millisecon
Steven D'Aprano wrote:
The animation should last 20s, but on my computer it is twice faster
Try replacing your CPU with one half as fast.
Or push the Turbo button to slow it down to 4.77MHz.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
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 t
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
On Tue, 19 Jun 2018 10:34:55 +0200, ast wrote:
> The animation should last 20s, but on my computer it is twice faster
[...]
> What's wrong ?
Try replacing your CPU with one half as fast.
*wink*
(Sorry for the bad advice, I couldn't resist.)
--
Steven D'Aprano
"Ever since I learned about conf
Hello
I noticed that the speed of animations made
with module matplotlib.animation always seems
wrong.
Here is a small example for demonstration purpose:
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
fig = plt.figure()
ax = fig.add_subplot(111)
tx