set_clip_path(self, path, transform=None)
For efficiency, if path is a .Rectangle
this method will set the clipping box to the corresponding rectangle and set the clipping path to None
.
For technical reasons (support of ~.Artist.set
), a tuple (path, transform) is also accepted as a single positional parameter.
<Comment: |value: '.. ACCEPTS: Patch or (Path, Transform) or None' |>
The clip path. If given a .Path
, transform must be provided as well. If None, a previously set clip path is removed.
Only used if path is a .Path
, in which case the given .Path
is converted to a .TransformedPath
using transform.
Set the artist's clip path.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them