You are reading an old version of the documentation (v2.0.2). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.artist.Artist.set_clip_path.html
matplotlib

Travis-CI:

This Page

matplotlib.artist.Artist.set_clip_path

Artist.set_clip_path(path, transform=None)

Set the artist’s clip path, which may be:

  • a Patch (or subclass) instance
  • a Path instance, in which case
    an optional Transform instance may be provided, which will be applied to the path before using it for clipping.
  • None, to remove the clipping path

For efficiency, if the path happens to be an axis-aligned rectangle, this method will set the clipping box to the corresponding rectangle and set the clipping path to None.

ACCEPTS: [ (Path, Transform) | Patch | None ]