matplotlib 3.5.1

NotesParameters
set_clip_path(self, path, transform=None)

Notes

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'
   |>
           

Parameters

path : `.Patch` or `.Path` or `.TransformedPath` or None

The clip path. If given a .Path , transform must be provided as well. If None, a previously set clip path is removed.

transform : `~matplotlib.transforms.Transform`, optional

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.

Examples

See :

Local connectivity graph

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


File: /matplotlib/artist.py#759
type: <class 'function'>
Commit: