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

Skip to content

Commit c550674

Browse files
jklymakmeeseeksmachine
authored andcommitted
Backport PR #18584: Fix setting 0-timeout timer with Tornado.
1 parent d941d33 commit c550674

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
@@ -517,7 +517,7 @@ def _timer_start(self):
517517
else:
518518
self._timer = tornado.ioloop.PeriodicCallback(
519519
self._on_timer,
520-
self.interval)
520+
max(self.interval, 1e-6))
521521
self._timer.start()
522522

523523
def _timer_stop(self):

0 commit comments

Comments
 (0)