![]() |
VOOZH | about |
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_transform() method in artist module of matplotlib library is used to get the Transform instance used by this artist
Syntax: Artist.get_transform(self)
Parameters: This method does not accepts any parameter.
Returns: This method return the Transform instance used by this artist
Below examples illustrate the matplotlib.artist.Artist.get_transform() function in matplotlib:
Example 1:
Output:
👁 ImageExample 2:
Output:
👁 ImageValue Return by get_transform() : Affine2D( [[1.38888889 0. 0. ] [0. 1.38888889 0. ] [0. 0. 1. ]])