Matplotlib
Python library for creating static, animated and interactive plots and visualizations.
Used in agent projects
194
1.5% of 12,697 public repos built with AI coding agents
Rank in charts and data visualisation
#2 of 16
by use in those projects
Downloads
39.3M
PyPI, last 7 days, matplotlib
GitHub stars
23.3K
last push Oct 10, 2026
How Matplotlib is used
Matplotlib is a dependency in 194 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.5%), #2 of 16 in charts and data visualisation. The most used alternative there is Recharts. Projects that use it most often also use NumPy (67.0%), pandas (65.5%), Pillow (45.9%).
Often used with Matplotlib
| NumPy | 67.0% of Matplotlib projects · 17.5× more than average |
|---|---|
| pandas | 65.5% of Matplotlib projects · 21.7× more than average |
| Pillow | 45.9% of Matplotlib projects · 19.9× more than average |
| Requests | 41.8% of Matplotlib projects · 7.9× more than average |
| python-dotenv | 40.2% of Matplotlib projects · 6.2× more than average |
| scikit-learn | 38.7% of Matplotlib projects · 30.7× more than average |
| SciPy | 35.1% of Matplotlib projects · 31.6× more than average |
| Pydantic | 34.5% of Matplotlib projects · 6.8× more than average |
By coding agent
| GitHub Copilot | 3.0% of projects set up for it |
|---|---|
| Claude Code | 2.0% of projects set up for it |
| Cursor | 2.4% of projects set up for it |
| OpenAI Codex | 2.4% of projects set up for it |
| Gemini CLI | 2.3% of projects set up for it |
| Devin Desktop | 3.6% of projects set up for it |
| OpenCode | 1.6% of projects set up for it |
Share of public repos configured for each agent that list Matplotlib as a dependency.
Install
| Package | pip install matplotlib |
|---|---|
| Main stacks | Python (190), Next.js (4) |
| Example projects | nmweaver/soltrade, daydreamlive/DEMON, jacwu/github-materials, towardsai/agentic-ai-engineering-course, leionion/solana-bot-bump |
Alternatives to Matplotlib
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Recharts npm Composable React component library for building responsive charts. |
1,037 (8.2%) | 56.3M | 27.6K | MIT |
| Chart.js npm Simple HTML5 canvas-based charting library for creating interactive data visualizations. |
165 (1.3%) | 12.7M | 67.7K | MIT |
| React Chart.js 2 npm React components wrapper for Chart.js enabling data visualization with charts. |
111 (0.9%) | 4.4M | 6,937 | MIT |
| Plotly pypi Interactive data visualization library for Python with rich chart and dashboard support. |
74 (0.6%) | 12.5M | 18.8K | — |
| Seaborn pypi Statistical data visualization library built on matplotlib with rich plot types. |
66 (0.5%) | 6.8M | 14.1K | — |
| Mermaid npm Markdown-like syntax for creating flowcharts, diagrams, and visualizations programmatically. |
65 (0.5%) | 17.7M | 90.6K | MIT |
| D3.js npm JavaScript library for creating data-driven documents with powerful data visualization capabilities. |
63 (0.5%) | 22.2M | 114K | ISC |
| XY Flow npm Customizable React library for building interactive node-based editors and flow charts. |
62 (0.5%) | 13.4M | 38.6K | MIT |