Visitar URL original
DOC: Note the timer behaviour changes · matplotlib/matplotlib@8537e32 · GitHub
Skip to content

Commit 8537e32

Browse files
committed
DOC: Note the timer behaviour changes
1 parent 7214ebd commit 8537e32

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Interactive timers keep to their interval
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
Repeating timers created with `.FigureCanvasBase.new_timer` now fire on the
5+
interval they were given rather than drifting by however long each callback
6+
takes, and they drop the firings they missed when a callback overruns.
7+
8+
Assigning to ``timer.interval`` or ``timer.single_shot`` now updates a running
9+
timer on every backend, and assigning the value it already holds no longer
10+
restarts it.
11+
12+
`.FigureCanvasBase.start_event_loop` returns after the requested timeout
13+
instead of after that many polling iterations. The GTK backends now run a
14+
``GLib.MainLoop`` rather than that polling fallback.

0 commit comments

Comments
 (0)