You are reading an old version of the documentation (v2.2.0). For the latest version see https://matplotlib.org/stable/
Version 2.2.0
matplotlib
Fork me on GitHub

This Page

matplotlib.axis.XTick.set_clip_path

XTick.set_clip_path(clippath, transform=None)

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

  • a Patch (or subclass) instance; or
  • a Path instance, in which case a Transform instance, which will be applied to the path before using it for clipping, must be provided; or
  • None, to remove a previously set 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]