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 98aceb1 + e6ffa5d commit 787fcceCopy full SHA for 787fcce
lib/matplotlib/backends/backend_qt5.py
@@ -498,17 +498,16 @@ def draw_idle(self):
498
QtCore.QTimer.singleShot(0, self._draw_idle)
499
500
def _draw_idle(self):
501
- if self.height() < 0 or self.width() < 0:
502
- self._draw_pending = False
503
if not self._draw_pending:
504
return
+ self._draw_pending = False
+ if self.height() < 0 or self.width() < 0:
505
+ return
506
try:
507
self.draw()
508
except Exception:
509
# Uncaught exceptions are fatal for PyQt5, so catch them instead.
510
traceback.print_exc()
- finally:
511
512
513
def drawRectangle(self, rect):
514
# Draw the zoom rectangle to the QPainter. _draw_rect_callback needs
0 commit comments