Matplotlib.artist.Artist.get_transformed_clip_path_and_affine() in Python
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The Artist class contains Abstract base class for objects that render into a FigureCanvas. All visible elements in a figure are subclasses of Artist.
The get_transformed_clip_path_and_affine() method in artist module of matplotlib library is used to get the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
Parameters: This method does not accepts any parameter.
Returns: This method return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation.
Below examples illustrate the matplotlib.artist.Artist.get_transformed_clip_path_and_affine() function in matplotlib:
Value Return by get_transformed_clip_path_and_affine(): Path(array([[ 0., 1.], [ 1., 0.], [ 0., -1.], [-1., 0.], [ 0., 1.]]), None) Affine2D( [[ 82.66666667 0. 328. ] [ 0. 61.6 237.6 ] [ 0. 0. 1. ]])