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

Method on_draw

galleries/users_explain/animations/blitting.py:148–155  ·  view source on GitHub ↗

Callback to register with 'draw_event'.

(self, event)

Source from the content-addressed store, hash-verified

146 self.cid = canvas.mpl_connect("draw_event", self.on_draw)
147
148 def on_draw(self, event):
149 """Callback to register with 'draw_event'."""
150 cv = self.canvas
151 if event is not None:
152 if event.canvas != cv:
153 raise RuntimeError
154 self._bg = cv.copy_from_bbox(cv.figure.bbox)
155 self._draw_animated()
156
157 def add_artist(self, art):
158 """

Callers 1

updateMethod · 0.95

Calls 2

_draw_animatedMethod · 0.95
copy_from_bboxMethod · 0.45

Tested by

no test coverage detected