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

Method draw

lib/matplotlib/backends/backend_agg.py:431–441  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

429 return renderer.restore_region(region, bbox, xy)
430
431 def draw(self):
432 # docstring inherited
433 self.renderer = self.get_renderer()
434 self.renderer.clear()
435 # Acquire a lock on the shared font cache.
436 with (self.toolbar._wait_cursor_for_draw_cm() if self.toolbar
437 else nullcontext()):
438 self.figure.draw(self.renderer)
439 # A GUI class may be need to update a window using this draw, so
440 # don't forget to call the superclass.
441 super().draw()
442
443 def get_renderer(self):
444 w, h = self.figure.bbox.size

Callers 3

print_rawMethod · 0.45
_print_pilMethod · 0.45
print_to_bufferMethod · 0.45

Calls 3

get_rendererMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected