matplotlib.axis.XAxis.set_clip_path¶
-
XAxis.
set_clip_path
(clippath, transform=None)¶ Set the artist's clip path.
Parameters: path :
Patch
orPath
orTransformedPath
or NoneThe clip path. If given a
Path
, transform must be provided as well. If None, a previously set clip path is removed.transform :
Transform
, optionalOnly used if path is a
Path
, in which case the givenPath
is converted to aTransformedPath
using transform.Notes
For efficiency, if path is a
Rectangle
this method will set the clipping box to the corresponding rectangle and set the clipping path toNone
.For technical reasons (support of
setp
), a tuple (path, transform) is also accepted as a single positional parameter.