mpl.pyplot.Text.set_clip_path¶
-
Text.set_clip_path(path, transform=None)[source]¶ Set the artist’s clip path, which may be:
a
Patch(or subclass) instance- a
Pathinstance, in which case an optional
Transforminstance may be provided, which will be applied to the path before using it for clipping.
- a
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 ]