René's URL Explorer Experiment


Title: The Lifecycle of a Plot — Matplotlib 3.10.8 documentation

direct link

Domain: matplotlib.org

docsearch:languageen
docbuild:last-updateDec 12, 2025

Links:

Skip to main contenthttps://matplotlib.org/tutorials/lifecycle.html#main-content
https://matplotlib.org/stable/
Plot typeshttps://matplotlib.org/plot_types/index.html
User guidehttps://matplotlib.org/users/index.html
Tutorialshttps://matplotlib.org/tutorials/index.html
Exampleshttps://matplotlib.org/gallery/index.html
Referencehttps://matplotlib.org/api/index.html
Contributehttps://matplotlib.org/devel/index.html
Releaseshttps://matplotlib.org/users/release_notes.html
Gitterhttps://gitter.im/matplotlib/matplotlib
Discoursehttps://discourse.matplotlib.org
GitHubhttps://github.com/matplotlib/matplotlib
Twitterhttps://twitter.com/matplotlib/
Plot typeshttps://matplotlib.org/plot_types/index.html
User guidehttps://matplotlib.org/users/index.html
Tutorialshttps://matplotlib.org/tutorials/index.html
Exampleshttps://matplotlib.org/gallery/index.html
Referencehttps://matplotlib.org/api/index.html
Contributehttps://matplotlib.org/devel/index.html
Releaseshttps://matplotlib.org/users/release_notes.html
Gitterhttps://gitter.im/matplotlib/matplotlib
Discoursehttps://discourse.matplotlib.org
GitHubhttps://github.com/matplotlib/matplotlib
Twitterhttps://twitter.com/matplotlib/
Pyplot tutorialhttps://matplotlib.org/tutorials/pyplot.html
Image tutorialhttps://matplotlib.org/tutorials/images.html
The Lifecycle of a Plothttps://matplotlib.org/tutorials/lifecycle.html
Artist tutorialhttps://matplotlib.org/tutorials/artists.html
https://matplotlib.org/index.html
Tutorialshttps://matplotlib.org/tutorials/index.html
Go to the endhttps://matplotlib.org/tutorials/lifecycle.html#sphx-glr-download-tutorials-lifecycle-py
#https://matplotlib.org/tutorials/lifecycle.html#the-lifecycle-of-a-plot
this excellent blog posthttps://pbpython.com/effective-matplotlib.html
#https://matplotlib.org/tutorials/lifecycle.html#a-note-on-the-explicit-vs-implicit-interfaces
Matplotlib Application Interfaces (APIs)https://matplotlib.org/users/explain/figure/api_interfaces.html#api-interfaces
axes.Axeshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
figure.Figurehttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
pyplothttps://matplotlib.org/api/pyplot_summary.html#module-matplotlib.pyplot
pyplot tutorialshttps://matplotlib.org/tutorials/pyplot.html#pyplot-tutorial
Figurehttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
Axeshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
Axeshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
Axishttps://matplotlib.org/api/axis_api.html#matplotlib.axis.Axis
#https://matplotlib.org/tutorials/lifecycle.html#our-data
datahttps://docs.python.org/3/library/stdtypes.html#dict
group_datahttps://docs.python.org/3/library/stdtypes.html#list
datahttps://docs.python.org/3/library/stdtypes.html#dict
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
datahttps://docs.python.org/3/library/stdtypes.html#dict
group_meanhttps://numpy.org/doc/stable/reference/arrays.scalars.html#numpy.float64
np.meanhttps://numpy.org/doc/stable/reference/generated/numpy.mean.html#numpy.mean
group_datahttps://docs.python.org/3/library/stdtypes.html#list
#https://matplotlib.org/tutorials/lifecycle.html#getting-started
figure.Figurehttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axes.Axeshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
Tight Layout tutorialhttps://matplotlib.org/users/explain/axes/tight_layout_guide.html#tight-layout-guide
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
#https://matplotlib.org/tutorials/lifecycle.html#controlling-the-style
stylehttps://matplotlib.org/api/style_api.html#module-matplotlib.style
plt.style.availablehttps://docs.python.org/3/library/stdtypes.html#list
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
#https://matplotlib.org/tutorials/lifecycle.html#customizing-the-plot
axes.Axes.get_xticklabels()https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_xticklabels.html#matplotlib.axes.Axes.get_xticklabels
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.get_xticklabelshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_xticklabels.html#matplotlib.axes.Axes.get_xticklabels
pyplot.setp()https://matplotlib.org/api/_as_gen/matplotlib.pyplot.setp.html#matplotlib.pyplot.setp
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.get_xticklabelshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_xticklabels.html#matplotlib.axes.Axes.get_xticklabels
plt.setphttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.setp.html#matplotlib.pyplot.setp
labelshttps://docs.python.org/3/library/stdtypes.html#list
Customizing Matplotlib with style sheets and rcParamshttps://matplotlib.org/users/explain/customizing.html#customizing
plt.rcParams.updatehttps://docs.python.org/3/library/stdtypes.html#dict.update
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.get_xticklabelshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_xticklabels.html#matplotlib.axes.Axes.get_xticklabels
plt.setphttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.setp.html#matplotlib.pyplot.setp
labelshttps://docs.python.org/3/library/stdtypes.html#list
Artist.set()https://matplotlib.org/api/_as_gen/matplotlib.artist.Artist.set.html#matplotlib.artist.Artist.set
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.get_xticklabelshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_xticklabels.html#matplotlib.axes.Axes.get_xticklabels
plt.setphttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.setp.html#matplotlib.pyplot.setp
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.sethttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.set.html#matplotlib.axes.Axes.set
pyplot.subplots()https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.get_xticklabelshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_xticklabels.html#matplotlib.axes.Axes.get_xticklabels
plt.setphttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.setp.html#matplotlib.pyplot.setp
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.sethttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.set.html#matplotlib.axes.Axes.set
Axis.set_major_formatterhttps://matplotlib.org/api/_as_gen/matplotlib.axis.Axis.set_major_formatter.html#matplotlib.axis.Axis.set_major_formatter
Axis.set_minor_formatterhttps://matplotlib.org/api/_as_gen/matplotlib.axis.Axis.set_minor_formatter.html#matplotlib.axis.Axis.set_minor_formatter
ticker.FuncFormatterhttps://matplotlib.org/api/ticker_api.html#matplotlib.ticker.FuncFormatter
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.get_xticklabelshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_xticklabels.html#matplotlib.axes.Axes.get_xticklabels
plt.setphttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.setp.html#matplotlib.pyplot.setp
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.sethttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.set.html#matplotlib.axes.Axes.set
ax.xaxis.set_major_formatterhttps://matplotlib.org/api/_as_gen/matplotlib.axis.Axis.set_major_formatter.html#matplotlib.axis.Axis.set_major_formatter
#https://matplotlib.org/tutorials/lifecycle.html#combining-multiple-visualizations
axes.Axeshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
fighttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure
axhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.html#matplotlib.axes.Axes
plt.subplotshttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots
ax.barhhttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.barh.html#matplotlib.axes.Axes.barh
group_nameshttps://docs.python.org/3/library/stdtypes.html#list
group_datahttps://docs.python.org/3/library/stdtypes.html#list
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.get_xticklabelshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_xticklabels.html#matplotlib.axes.Axes.get_xticklabels
plt.setphttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.setp.html#matplotlib.pyplot.setp
labelshttps://docs.python.org/3/library/stdtypes.html#list
ax.axvlinehttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.axvline.html#matplotlib.axes.Axes.axvline
group_meanhttps://numpy.org/doc/stable/reference/arrays.scalars.html#numpy.float64
grouphttps://docs.python.org/3/library/functions.html#int
ax.texthttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.text.html#matplotlib.axes.Axes.text
grouphttps://docs.python.org/3/library/functions.html#int
ax.title.sethttps://matplotlib.org/api/text_api.html#matplotlib.text.Text.set
ax.sethttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.set.html#matplotlib.axes.Axes.set
ax.xaxis.set_major_formatterhttps://matplotlib.org/api/_as_gen/matplotlib.axis.Axis.set_major_formatter.html#matplotlib.axis.Axis.set_major_formatter
ax.set_xtickshttps://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.set_xticks.html#matplotlib.axes.Axes.set_xticks
fig.subplots_adjusthttps://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.subplots_adjust.html#matplotlib.figure.Figure.subplots_adjust
plt.showhttps://matplotlib.org/api/_as_gen/matplotlib.pyplot.show.html#matplotlib.pyplot.show
#https://matplotlib.org/tutorials/lifecycle.html#saving-our-plot
fig.canvas.get_supported_filetypeshttps://matplotlib.org/api/backend_bases_api.html#matplotlib.backend_bases.FigureCanvasBase.get_supported_filetypes
figure.Figure.savefig()https://matplotlib.org/api/_as_gen/matplotlib.figure.Figure.savefig.html#matplotlib.figure.Figure.savefig
Download Jupyter notebook: lifecycle.ipynbhttps://matplotlib.org/_downloads/7de294e08c64b9d855f6e791ded043ab/lifecycle.ipynb
Download Python source code: lifecycle.pyhttps://matplotlib.org/_downloads/e60e5e546a1c3950925a111a58079660/lifecycle.py
Download zipped: lifecycle.ziphttps://matplotlib.org/_downloads/0939e56d5bab3e8cca2af154196d3e36/lifecycle.zip
Gallery generated by Sphinx-Galleryhttps://sphinx-gallery.github.io
A note on the explicit vs. implicit interfaceshttps://matplotlib.org/tutorials/lifecycle.html#a-note-on-the-explicit-vs-implicit-interfaces
Our datahttps://matplotlib.org/tutorials/lifecycle.html#our-data
Getting startedhttps://matplotlib.org/tutorials/lifecycle.html#getting-started
Controlling the stylehttps://matplotlib.org/tutorials/lifecycle.html#controlling-the-style
Customizing the plothttps://matplotlib.org/tutorials/lifecycle.html#customizing-the-plot
Combining multiple visualizationshttps://matplotlib.org/tutorials/lifecycle.html#combining-multiple-visualizations
Saving our plothttps://matplotlib.org/tutorials/lifecycle.html#saving-our-plot
Sphinxhttps://www.sphinx-doc.org/
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.