![]() |
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 remove() method in artist module of matplotlib library is used to remove the artist from the figure if possible.
Syntax: Artist.remove(self)
Parameters: This method does not accepts any parameter.
Returns: This method return the figure after removal of the artist.
Below examples illustrate the matplotlib.artist.Artist.remove() function in matplotlib:
Example 1:
Output:
👁 ImageExample 2: