plotnine
Grammar of Graphics implementation for Python inspired by ggplot2.
Charts and data visualisation PyPI MIT
How plotnine is used
plotnine is a dependency in 2 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 53 projects, and what it is used with below comes from all of them. The most used alternative in our scan is Matplotlib (167 projects). Projects that use it most often also use Matplotlib (100.0%), pandas (100.0%), NumPy (98.1%).
plotnine popularity over time
Gid Score 48: downloads 59, use in agent projects 42, GitHub stars 38, downloads trend 53 (each 0-100). How it is calculated.
Often used with plotnine
| Matplotlib | 100.0% of plotnine projects · 37.2× more than average |
|---|---|
| pandas | 100.0% of plotnine projects · 23.3× more than average |
| NumPy | 98.1% of plotnine projects · 16.8× more than average |
| SciPy | 98.1% of plotnine projects · 53.9× more than average |
| Pillow | 96.2% of plotnine projects · 25.1× more than average |
| pyparsing | 94.3% of plotnine projects · 254.6× more than average |
| python-dateutil | 94.3% of plotnine projects · 57.4× more than average |
| pytz | 94.3% of plotnine projects · 101.0× more than average |
From all 53 projects in our scan that use plotnine, including the dependency samples.
Install
| Package | pip install plotnine |
|---|---|
| Main stacks | Python (53) |
| Example projects | BlackArbsCEO/Adv_Fin_ML_Exercises, fmcarlucci/JigenDG, pmaji/practical-python-data-viz-guide, Soheil-ab/sage, moizsaifee/kaggle-jigsaw-multilingual-toxic-comment-classification-3rd-place-solution |
Alternatives to plotnine
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside plotnine are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Matplotlib pypi Python library for creating static, animated and interactive plots and visualizations. |
80 | 167 (10.3%) | 41.3M | 23.4K | PSF-2.0 |
| Seaborn pypi Statistical data visualization library built on matplotlib with rich plot types. |
69 | 59 (3.6%) | 7.1M | 14.1K | BSD |
More in Charts and data visualisation: Recharts Chart.js Mermaid XY Flow Plotly D3.js React Chart.js 2 Diagrams