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

Skip to content

Commit 70c5f2b

Browse files
authored
Merge pull request #18584 from QuLogic/fix-tornado-timer
Fix setting 0-timeout timer with Tornado.
2 parents cbfbc7a + 0339726 commit 70c5f2b

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)