Matplotlib 3.11.0.dev1563+g90748a566 documentation#
Matplotlib is a comprehensive library for creating static, animated,and interactive visualizations.
Install#
pipinstallmatplotlib
condainstall-cconda-forgematplotlib
pixiaddmatplotlib
uvaddmatplotlib
Warning
uv usually installs its own versions of Python from thepython-build-standalone project, and only recent versions of thosePython builds (August 2025) work properly with thetkagg backendfor displaying plots in a window. Please make sure you are using uv0.8.7 or newer (update with e.g.uvselfupdate) and that yourbundled Python installs are up to date (withuvpythonupgrade--reinstall). Alternatively, you can use one of the othersupported GUI frameworks, e.g.
uvaddmatplotlibpyside6
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, includingstyles, colors, more plot types and backends, and alternativeinterfaces.
What's new#
Learn about new features and API changes.
Contribute#
Matplotlib is a community project maintained for and by its users. SeeContribute for the many ways you can help!
About us#
Matplotlib was created by neurobiologist John Hunter to work with EEGdata. It grew to be used and developed by many people in manydifferent fields. John's goal was that Matplotlib make easy things easyand hard things possible.
