

plotnine
A Grammar of Graphics for Python
Plotnine brings the power of the grammar of graphics to Python, offering a systematic approach to building visualizations by explicitly mapping data to visual properties. Inspired by R’s ggplot2, plotnine enables data scientists and developers to construct complex, publication-quality graphics incrementally through a compositional, layer-based approach. Whether you’re conducting exploratory data analysis or creating professional reports, plotnine makes it easy to build sophisticated visualizations by combining simple, intuitive building blocks.
The library excels at making complex plots easy to reason about while keeping simple plots simple to create. With support for faceting, statistical transformations, extensive theming options, and a syntax familiar to ggplot2 users, plotnine provides a consistent and powerful framework for creating data narratives. This project is funded by Posit, bringing the elegance and flexibility of the grammar of graphics to the Python ecosystem.
Contributors

Hassan Kibirige
Software Engineer

Michael Chow
Principal Software Engineer

Jeroen Janssens
Head of Developer Relations

Gina Reynolds

Hadley Wickham
Chief Scientific Officer

Isabel Zimmerman
Senior Software Engineer

