Matplotlib 3.10.3 documentation#
Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations.
Install#
pip install matplotlib
conda install -c conda-forge matplotlib
pixi add matplotlib
uv add matplotlib
Warning
If you install Python with uv
then the tkagg
backend
will not be available because python-build-standalone (used by uv
to distribute Python) does not contain tk bindings that are usable by
Matplotlib (see this issue for details). If you want Matplotlib
to be able to display plots in a window, you should install one of
the other supported GUI frameworks,
e.g.
uv add matplotlib pyside6
For more detailed instructions, see the installation guide.
Learn#
How to use Matplotlib?
What can Matplotlib do?
Reference
Top-level interfaces to create:
figures:
pyplot.figure
subplots:
pyplot.subplots
,pyplot.subplot_mosaic
Community#
provide custom, domain specific, and experimental features, including styles, colors, more plot types and backends, and alternative interfaces.
What's new#
Learn about new features and API changes.
Contribute#
Matplotlib is a community project maintained for and by its users. See Contribute for the many ways you can help!
About us#
Matplotlib was created by neurobiologist John Hunter to work with EEG data. It grew to be used and developed by many people in many different fields. John's goal was that Matplotlib make easy things easy and hard things possible.