Matplotlib documentation
发布时间:2026-11-01 | 浏览:1
Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations.
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.
Install an official release
Third-party distributions
Install a nightly build
Install from source
How to use Matplotlib?
Quick start guide
Frequently Asked Questions
What can Matplotlib do?
Plotting methods
Top-level interfaces to create:
figures: pyplot.figure
figures: pyplot.figure
subplots: pyplot.subplots , pyplot.subplot_mosaic
subplots: pyplot.subplots , pyplot.subplot_mosaic
External resources Books, chapters and articles Videos Tutorials Galleries
Books, chapters and articles
Third-party packages ,
provide custom, domain specific, and experimental features, including styles, colors, more plot types and backends, and alternative interfaces.
Learn about new features and API changes.
Matplotlib is a community project maintained for and by its users. See Contribute for the many ways you can help!
Contribute GitHub issue tracker Contributing guide Development workflow Policies and guidelines
GitHub issue tracker
Contributing guide
Development workflow
Policies and guidelines
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.
Project information Mission Statement History Code of Conduct Citing Matplotlib License Credits
Mission Statement
Code of Conduct
Citing Matplotlib