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

Method add_artist

lib/matplotlib/offsetbox.py:674–683  ·  view source on GitHub ↗

Add an `.Artist` to the container box.

(self, a)

Source from the content-addressed store, hash-verified

672 self.width * dpi_cor, self.height * dpi_cor)
673
674 def add_artist(self, a):
675 """Add an `.Artist` to the container box."""
676 self._children.append(a)
677 if not a.is_transform_set():
678 a.set_transform(self.get_transform())
679 if self.axes is not None:
680 a.axes = self.axes
681 fig = self.get_figure(root=False)
682 if fig is not None:
683 a.set_figure(fig)
684
685 def draw(self, renderer):
686 # docstring inherited

Callers 5

add_offsetboxesFunction · 0.95
test_offsetbox_clippingFunction · 0.95
draw_circlesFunction · 0.95

Calls 5

get_transformMethod · 0.95
is_transform_setMethod · 0.80
set_transformMethod · 0.45
get_figureMethod · 0.45
set_figureMethod · 0.45

Tested by 4

add_offsetboxesFunction · 0.76
test_offsetbox_clippingFunction · 0.76