MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / __init__

Method __init__

site-packages/matplotlib/transforms.py:2827–2840  ·  view source on GitHub ↗

Create a new :class:`TransformedPatchPath` from the given :class:`~matplotlib.path.Patch`.

(self, patch)

Source from the content-addressed store, hash-verified

2825 updated when the non-affine part of the transform or the patch changes.
2826 """
2827 def __init__(self, patch):
2828 """
2829 Create a new :class:`TransformedPatchPath` from the given
2830 :class:`~matplotlib.path.Patch`.
2831 """
2832 TransformNode.__init__(self)
2833
2834 transform = patch.get_transform()
2835 self._patch = patch
2836 self._transform = transform
2837 self.set_children(transform)
2838 self._path = patch.get_path()
2839 self._transformed_path = None
2840 self._transformed_points = None
2841
2842 def _revalidate(self):
2843 patch_path = self._patch.get_path()

Callers

nothing calls this directly

Calls 4

set_childrenMethod · 0.80
__init__Method · 0.45
get_transformMethod · 0.45
get_pathMethod · 0.45

Tested by

no test coverage detected