Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0339726

Browse files
committed
Fix setting 0-timeout timer with Tornado.
It doesn't allow 0, so set a very small minimum. Fixes #18580.
1 parent 5173cda commit 0339726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_webagg_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def _timer_start(self):
512512
else:
513513
self._timer = tornado.ioloop.PeriodicCallback(
514514
self._on_timer,
515-
self.interval)
515+
max(self.interval, 1e-6))
516516
self._timer.start()
517517

518518
def _timer_stop(self):

0 commit comments

Comments
 (0)