mpl.artist.TransformedPath¶
-
class
mpl.artist.TransformedPath(path, transform)[source]¶ A
TransformedPathcaches a non-affine transformed copy of thePath. This cached copy is automatically updated when the non-affine part of the transform changes.Note
Paths are considered immutable by this class. Any update to the path’s vertices/codes will not trigger a transform recomputation.
-
__init__(path, transform)[source]¶ Create a new
TransformedPathfrom the givenPathandTransform.
-
Methods¶
__init__(path, transform) |
Create a new TransformedPath from the given Path and Transform. |
frozen() |
Returns a frozen copy of this transform node. |
get_affine() |
|
get_fully_transformed_path() |
Return a fully-transformed copy of the child path. |
get_transformed_path_and_affine() |
Return a copy of the child path, with the non-affine part of the transform already applied, along with the affine part of the path necessary to complete the transformation. |
get_transformed_points_and_affine() |
Return a copy of the child path, with the non-affine part of the transform already applied, along with the affine part of the path necessary to complete the transformation. |
invalidate() |
Invalidate this TransformNode and triggers an invalidation of its ancestors. |
set_children(*children) |
Set the children of the transform, to let the invalidation system know which transforms can invalidate this transform. |