plotnine
Grammar-of-graphics plotting library for Python, inspired by ggplot2.
Our View
plotnine gives Python users a declarative way to build statistical graphics, which can make complex plots easier to reason about and adapt across related datasets.
Provisional positions are editorial proposals awaiting group review.
Teaching — Recorded in topic offerings; consult the dated event links for availability.
0 topics with recorded teaching · 0 past offerings · 0 upcoming offerings
Related themes: Scientific Computing
Related topics: Dataframes and Statistics
Common use cases
- Create layered statistical plots from tidy tabular data
- Reuse visual encodings across related analyses
- Teach visualization concepts through grammar-of-graphics ideas
Getting started
plotnine brings grammar-of-graphics plotting to Python. Instead of building every visual detail procedurally, users map data columns to visual encodings and add layers such as points, lines, summaries, and facets.
Why It Matters in Research Workflows
Clear research figures often need consistent mappings across many subsets or conditions. A declarative plotting approach can make those relationships easier to inspect, reuse, and discuss with collaborators.
In Our Teaching
We reference plotnine in data-science topics as a complement to Matplotlib and Seaborn. It is most useful once learners are comfortable with tidy tabular data and want a grammar-based approach to visualization.