VOOZH about

URL: https://www.geeksforgeeks.org/python/matplotlib-artist-artist-get_transform-in-python/

⇱ Matplotlib.artist.Artist.get_transform() in Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Matplotlib.artist.Artist.get_transform() in Python

Last Updated : 12 Jul, 2025

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.

Matplotlib.artist.Artist.get_transform() Method

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:

👁 Image

Example 2:

Output:

👁 Image
Value Return by get_transform() :
 Affine2D(
 [[1.38888889 0. 0. ]
 [0. 1.38888889 0. ]
 [0. 0. 1. ]])
Comment