Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations.
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.
How to use Matplotlib?
What can Matplotlib do?
Reference
Top-level interfaces to create:
figures: pyplot.figure
subplots: pyplot.subplots, pyplot.subplot_mosaic
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!
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.