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

Method draw

lib/matplotlib/offsetbox.py:685–706  ·  view source on GitHub ↗
(self, renderer)

Source from the content-addressed store, hash-verified

683 a.set_figure(fig)
684
685 def draw(self, renderer):
686 # docstring inherited
687
688 dpi_cor = renderer.points_to_pixels(1.)
689 self.dpi_transform.clear()
690 self.dpi_transform.scale(dpi_cor)
691
692 # At this point the DrawingArea has a transform
693 # to the display space so the path created is
694 # good for clipping children
695 tpath = mtransforms.TransformedPath(
696 mpath.Path([[0, 0], [0, self.height],
697 [self.width, self.height],
698 [self.width, 0]]),
699 self.get_transform())
700 for c in self._children:
701 if self._clip_children and not (c.clipbox or c._clippath):
702 c.set_clip_path(tpath)
703 c.draw(renderer)
704
705 _bbox_artist(self, renderer, fill=False, props=dict(pad=0.))
706 self.stale = False
707
708
709class TextArea(OffsetBox):

Callers

nothing calls this directly

Calls 7

get_transformMethod · 0.95
_bbox_artistFunction · 0.85
points_to_pixelsMethod · 0.45
clearMethod · 0.45
scaleMethod · 0.45
set_clip_pathMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected