ggplot
ggplot for python
What it is and what it does
ggplot is a Python port of the R ggplot2 library, implementing the grammar of graphics paradigm for building plots. Rather than calling functions to draw specific chart types, you compose plots by layering components: a data source, aesthetic mappings (which columns map to which visual properties), geometric layers (points, lines, densities), scales, and facets. The library was designed to bring R's declarative plotting approach to Python, though it does not aim for feature-parity with ggplot2.
The package has been abandoned since its latest release on 2016-09-29 and receives no maintenance. While it has no runtime dependencies and installs cleanly, its age means it was built for older Python versions (2.7 and 3.3 era) and may not work reliably with modern environments or current data science libraries. The repository is archived with a last commit on 2023-01-21.
Use it for:
- Build multi-layered statistical plots by composing data, aesthetics, and geometric layers in a declarative style.
- Create faceted plots that split data across multiple subplots based on categorical variables.
- Apply consistent color scales and themes across multiple plot types using a unified grammar.
- Prototype exploratory data visualizations when you prefer a grammar-of-graphics approach over imperative plotting.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
ggplot is a Python implementation of the grammar of graphics that lets you build layered statistical graphics by combining data, aesthetic mappings, and geometric layers.
No. The package is abandoned (latest release 2016-09-29, repository archived) and almost certainly incompatible with modern Python and libraries. While it has no dependencies and a permissive license, the lack of maintenance makes it unsuitable for new projects. Consider alternatives or test thoroughly before use.
Install
ggplot on PyPI
pip
pip install ggplotuv
uv add ggplotpoetry
poetry add ggplotInstalling ggplot
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned—the repository is archived and the last release was in 2016. No maintenance or updates are forthcoming.
License in practice
ggplot is licensed under BSD (permissive), which allows commercial and private use with minimal restrictions. This poses no licensing barrier to adoption.
Quickstart
pip install ggplot
from ggplot import ggplot, aes, geom_density, scale_color_brewer, facet_wrap
ggplot(diamonds, aes(x='price', color='clarity')) + \
geom_density() + \
scale_color_brewer(type='div', palette=7) + \
facet_wrap('cut')
The package was last updated in 2016 and may not be compatible with modern Python or dependency versions; testing on your target environment is essential.
Verify before relying
- Whether the package works with current Python versions or modern data science libraries.
- What specific data structures or formats are required for the input data argument.
- Whether all ggplot2 features are implemented or which major features remain unported.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,606 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 89,904/month — #13,628 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ggplot-0.11.5-py2.py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
plotnineplotnine implements a grammar of graphics for…
permissive · top 5,000 on PyPI
mizaniMizani provides scales and transformations for…
permissive · top 5,000 on PyPI
bqscalesbqscales implements a grammar-of-graphics layer…
permissive · top 15,000 on PyPI
bqplotbqplot is a 2-D interactive plotting library…
permissive · top 15,000 on PyPI
altairAltair is a declarative Python library for…
permissive · top 1,000 on PyPI
histHist provides a user-friendly interface for…
permissive · top 15,000 on PyPI
glumglum is a high-performance Python library for…
permissive · top 15,000 on PyPI