matplotlib.axis.Axis.set_clip_path#
- Axis.set_clip_path(path,transform=None)[source]#
Set the artist's clip path.
- Parameters:
- path
PatchorPathorTransformedPathor None The clip path. If given a
Path,transform must be provided aswell. IfNone, a previously set clip path is removed.- transform
Transform, optional Only used ifpath is a
Path, in which case the givenPathis converted to aTransformedPathusingtransform.
- path
Notes
For efficiency, ifpath is a
Rectanglethis method will set theclipping box to the corresponding rectangle and set the clipping pathtoNone.For technical reasons (support of
set), a tuple(path,transform) is also accepted as a single positionalparameter.
On this page