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

Method get_transform

lib/matplotlib/artist.py:477–484  ·  view source on GitHub ↗

Return the `.Transform` instance used by this artist.

(self)

Source from the content-addressed store, hash-verified

475 self.stale = True
476
477 def get_transform(self):
478 """Return the `.Transform` instance used by this artist."""
479 if self._transform is None:
480 self._transform = IdentityTransform()
481 elif (not isinstance(self._transform, Transform)
482 and hasattr(self._transform, '_as_mpl_transform')):
483 self._transform = self._transform._as_mpl_transform(self.axes)
484 return self._transform
485
486 def get_children(self):
487 r"""Return a list of the child `.Artist`\s of this `.Artist`."""

Callers 1

set_clip_pathMethod · 0.45

Calls 2

IdentityTransformClass · 0.85
_as_mpl_transformMethod · 0.45

Tested by

no test coverage detected