Matplotlib.figure.Figure.delaxes() in Python
Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. The figure module provides the top-level Artist, the Figure, which contains all the plot elements. This module is used to control the default spacing of the subplots and top level container for all plot elements.
The delaxes() method of figure module of matplotlib library is used to remove the Axes ax from the figure and update the current axes.
Syntax: delaxes(self, ax)
Parameters: This accept the following parameters that are described below:
- ax: This parameter is the axes to be removed.
Returns: This method does not return any value.
Below examples illustrate the matplotlib.figure.Figure.delaxes() function in matplotlib.figure:
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