Matplotlib 3.10.7 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
uv usually installs its own versions of Python from the python-build-standalone project, and only recent versions of those Python builds (August 2025) work properly with the tkagg backend for displaying plots in a window. Please make sure you are using uv 0.8.7 or newer (update with e.g. uv self update) and that your bundled Python installs are up to date (with uv python upgrade --reinstall). Alternatively, you can use one of the other supported GUI frameworks, e.g.
uv add matplotlib pyside6 Learn#
How to use Matplotlib?
What can Matplotlib do?
Reference
Top-level interfaces to create:
figures:
pyplot.figuresubplots:
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.