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

Skip to content

Commit de22a51

Browse files
authored
Merge pull request #18723 from meeseeksmachine/auto-backport-of-pr-18584-on-v3.3.x
Backport PR #18584 on branch v3.3.x (Fix setting 0-timeout timer with Tornado.)
2 parents d941d33 + c550674 commit de22a51

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)