Matplotlib.pyplot.fignum_exists() in Python Last Updated : 10 May, 2020 Comments Improve Suggest changes Like Article Like Report Matplotlib is a library in Python and it is numerical – mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, etc. matplotlib.pyplot.fignum_exists() method The fignum_exists() method in pyplot module of matplotlib library is used to get whether the figure with the given id exists. Syntax: matplotlib.pyplot.fignum_exists(num) Parameters: num: This parameter is the figure number. Returns: This method returns whether the figure with the given id exists or not. Below examples illustrate the matplotlib.pyplot.fignum_exists() function in matplotlib.pyplot: Example 1: Python3 1== #Implementation of matplotlib function import matplotlib.pyplot as plt import numpy as np x = np.arange(20) / 50 y = (x + 0.1)*3 val1 = [True, False] * 10 val2 = [False, True] * 10 plt.errorbar(x, y, xerr=0.1, xlolims=True, label='Line 1') y = (x + 0.3)*3 y = (x + 0.6)*4 plt.errorbar(x + 1.2, y, xerr=0.1, xuplims=True, label='Line 3') plt.legend() plt.text(0.5, 3.7, "Figure 1 Exists ? " + str(plt.fignum_exists(1)) , fontweight="bold") plt.title('matplotlib.pyplot.fignum_exists()function\ Example' ,fontweight="bold") plt.show() Output: Example 2: Python3 1== # Implementation of matplotlib function import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 10, 500) y = np.sin(x**2)+np.cos(x) plt.plot(x, y, label ='Line 1') plt.plot(x, y - 0.6, label ='Line 2') plt.text(2.5, 1.9, "Figure 2 Exists ? " + str(plt.fignum_exists(2)), fontweight ="bold") plt.title('matplotlib.pyplot.fignum_exists()function\ Example', fontweight ="bold") plt.show() Output: Comment More infoAdvertise with us Next Article Matplotlib.pyplot.fignum_exists() in Python S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python-matplotlib Matplotlib Pyplot-class Practice Tags : python Similar Reads Matplotlib.pyplot.get_fignums() in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read matplotlib.pyplot.figure() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Matplotlib.pyplot.axis() in Python axis() function in Matplotlib is used to get or set properties of the x- and y-axis in a plot. It provides control over axis limits, aspect ratio and visibility, allowing customization of the plotâs coordinate system and view. It's key feature includes:Gets or sets the axis limits [xmin, xmax, ymin, 3 min read Matplotlib.pyplot.ginput() in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Matplotlib.pyplot.hist2d() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. matplotlib.pyplot.hist2d() Function The hist2d() function in pyplot module of matplotlib library is used 2 min read Matplotlib.pyplot.findobj() in Python Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. matplotlib.pyplot.findobj() This function is used to recursively find all instances of a 2 min read Matplotlib.pyplot.axes() in Python axes() method in Matplotlib is used to create a new Axes instance (i.e., a plot area) within a figure. This allows you to specify the location and size of the plot within the figure, providing more control over subplot layout compared to plt.subplot(). It's key features include:Creates a new Axes at 3 min read Matplotlib.pyplot.figtext() in Python Matplotlib is an extensively used Python library for data visualization. It is a multi-platform data visualization library built on NumPy arrays, also designed to work with the SciPy stack. Matplotlib.pyplot.figtext() Figtext is used to add text to a figure at any location on it. You can even add th 3 min read Matplotlib.pyplot.delaxes() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. matplotlib.pyplot.delaxes() Function The delaxes() function in pyplot module of matplotlib library is use 2 min read Matplotlib.pyplot.gca() in Python Matplotlib is a library in Python and it is a numerical - mathematical extension for the NumPy library. Pyplot is a state-based interface to a Matplotlib module that provides a MATLAB-like interface.  matplotlib.pyplot.gca() Function The gca() function in pyplot module of matplotlib library is used 2 min read Like