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

Method add_artist

lib/matplotlib/offsetbox.py:851–855  ·  view source on GitHub ↗

Add an `.Artist` to the container box.

(self, a)

Source from the content-addressed store, hash-verified

849 self.ref_offset_transform = mtransforms.Affine2D()
850
851 def add_artist(self, a):
852 """Add an `.Artist` to the container box."""
853 self._children.append(a)
854 a.set_transform(self.get_transform())
855 self.stale = True
856
857 def get_transform(self):
858 """Return the `.Transform` applied to the children."""

Callers 3

plot_pathsFunction · 0.95
draw_ellipseFunction · 0.95
draw_sizebarFunction · 0.95

Calls 2

get_transformMethod · 0.95
set_transformMethod · 0.45

Tested by 1

plot_pathsFunction · 0.76