Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1909408 + 7764fda commit 92da21cCopy full SHA for 92da21c
lib/matplotlib/backends/backend_qt5.py
@@ -481,17 +481,16 @@ def draw_idle(self):
481
QtCore.QTimer.singleShot(0, self._draw_idle)
482
483
def _draw_idle(self):
484
- if self.height() < 0 or self.width() < 0:
485
- self._draw_pending = False
486
if not self._draw_pending:
487
return
+ self._draw_pending = False
+ if self.height() < 0 or self.width() < 0:
488
+ return
489
try:
490
self.draw()
491
except Exception:
492
# Uncaught exceptions are fatal for PyQt5, so catch them instead.
493
traceback.print_exc()
- finally:
494
495
496
def drawRectangle(self, rect):
497
# Draw the zoom rectangle to the QPainter. _draw_rect_callback needs
0 commit comments