VOOZH about

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

⇱ Matplotlib.artist.Artist.axes in Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Matplotlib.artist.Artist.axes 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.axes() property 

The axes() property in artist module of matplotlib library is the Axes instance the artist resides in, or None

property:Artist.axes

Below examples illustrate the matplotlib.artist.Artist.axes() property in matplotlib:

Example 1:

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment