Matplotlib.pyplot.get_figlabels() 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.get_figlabels() method The get_figlabels() method in pyplot module of matplotlib library is used to get the list of existing figure labels. Syntax: matplotlib.pyplot.get_figlabels() Parameters: This method does not accept any parameters. Returns: This method returns the list of existing figure labels. Below examples illustrate the matplotlib.pyplot.get_figlabels() function in matplotlib.pyplot: Example 1: Python3 1== import matplotlib.pyplot as plt import numpy as np t = np.arange(0.01, 5.0, 0.01) s = np.exp(-t) plt.plot(t, s) plt.ylim(1, 0) plt.ylabel('Display Y-axis Label', fontweight ='bold') plt.grid(True) w = plt.get_figlabels() plt.text(1.5, 0.58, "List of existing figure labels : \n" + str(w), fontsize = 12) plt.title('matplotlib.pyplot.get_figlabels() function\ Example', fontweight ="bold") plt.show() Output: Example 2: Python3 1== import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.patches as patches import numpy as np mpl.rcParams['figure.dpi'] = 80 mpl.rcParams['savefig.dpi'] = 80 def redraw(event): if np.size(plt.get_figlabels()): ax.clear() drawRectangles(ax) fig.canvas.draw() else: pass def drawRectangles(ax): td2dis = ax.transData coords = td2dis.transform([0.2, 0.5]) tr = mpl.transforms.Affine2D().rotate_deg_around(coords[0], coords[1], 10) t = td2dis + tr rec0 = patches.Rectangle((0.5, 0.5), 0.25, 0.2, color = 'green', alpha = 0.4) ax.add_patch(rec0) rect1 = patches.Rectangle((0.5, 0.5), 0.25, 0.2, color = 'green', alpha = 0.7, transform = t) ax.add_patch(rect1); plt.title('matplotlib.pyplot.get_figlabels() function Example', fontweight ="bold") plt.grid() figSize = (8, 6) fig = plt.figure("Patch rotate", figsize = figSize) ax = fig.add_subplot(111) ax.set_xlim(0, 1);ax.set_ylim(0, 1); fig.canvas.mpl_connect('resize_event', redraw) drawRectangles(ax) plt.show() Output: Comment More infoAdvertise with us Next Article Matplotlib.pyplot.get_figlabels() 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.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.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.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.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 Matplotlib.pyplot.figlegend() function in Python Matplotlib is a Python library used for creating, animations, and editing graphs, plots, and figures using Pyplot. Matplotlib.pyplot has many functions defined in it to use, as per the preference and requirement of the user demands. matplotlib.pyplot.figlegend() function  This is used to place a leg 3 min read Matplotlib.pyplot.gci() 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.figimage() function in Python Matplotlib is a widely used library in Python for plotting various graphs, as it provides very efficient ways and easy to understand methods for complex plots also. pyplot is a collection of command style functions that make matplotlib work like MATLAB. figimage() function matplotlib.pyplot.figimage 2 min read Matplotlib.pyplot.get_plot_commands() 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.draw() 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.draw() Function The draw() function in pyplot module of matplotlib library is used to r 1 min read Like