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

Method draw_idle

lib/matplotlib/backends/backend_qt.py:494–504  ·  view source on GitHub ↗

Queue redraw of the Agg buffer and request Qt paintEvent.

(self)

Source from the content-addressed store, hash-verified

492 self.update()
493
494 def draw_idle(self):
495 """Queue redraw of the Agg buffer and request Qt paintEvent."""
496 # The Agg draw needs to be handled by the same thread Matplotlib
497 # modifies the scene graph from. Post Agg draw request to the
498 # current event loop in order to ensure thread affinity and to
499 # accumulate multiple draw requests from event handling.
500 # TODO: queued signal connection might be safer than singleShot
501 if not (getattr(self, '_draw_pending', False) or
502 getattr(self, '_is_drawing', False)):
503 self._draw_pending = True
504 QtCore.QTimer.singleShot(0, self._draw_idle)
505
506 def blit(self, bbox=None):
507 # docstring inherited

Callers 9

resizeEventMethod · 0.95
__init__Method · 0.45
create_with_canvasMethod · 0.45
showMethod · 0.45
__init__Method · 0.45
_on_value_changedMethod · 0.45
_tight_layoutMethod · 0.45
crashing_callbackFunction · 0.45
test_mask_image_allFunction · 0.45

Calls

no outgoing calls

Tested by 2

crashing_callbackFunction · 0.36
test_mask_image_allFunction · 0.36