MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _draw_idle

Method _draw_idle

lib/matplotlib/backends/backend_qt.py:515–526  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

513 self.repaint(l, self.rect().height() - t, w, h)
514
515 def _draw_idle(self):
516 with self._idle_draw_cntx():
517 if not self._draw_pending:
518 return
519 self._draw_pending = False
520 if _isdeleted(self) or self.height() <= 0 or self.width() <= 0:
521 return
522 try:
523 self.draw()
524 except Exception:
525 # Uncaught exceptions are fatal for PyQt5, so catch them.
526 traceback.print_exc()
527
528 def drawRectangle(self, rect):
529 # Draw the zoom rectangle to the QPainter. _draw_rect_callback needs

Callers 1

paintEventMethod · 0.45

Calls 5

drawMethod · 0.95
_isdeletedFunction · 0.85
_idle_draw_cntxMethod · 0.80
heightMethod · 0.80
widthMethod · 0.80

Tested by

no test coverage detected