Skip to main content

ggplot for python

Project description

What is it?

ggplot is a Python implementation of the grammar of graphics. It is not intended to be a feature-for-feature port of `ggplot2 for R <>`__–though there is much greatness in ggplot2, the Python world could stand to benefit from it. So there will be feature overlap, but not neccessarily mimicry (after all, R is a little weird).

You can do cool things like this:

ggplot(diamonds, aes(x='price', color='clarity')) + \
    geom_density() + \
    scale_color_brewer(type='div', palette=7) + \


$ pip install -U ggplot
# or
$ conda install -c conda-forge ggplot
# or
pip install git+


Examples are the best way to learn. There is a Jupyter Notebook full of them. There are also notebooks that show how to do particular things with ggplot (i.e. make a scatter plot or make a histogram).

What happened to the old version that didn’t work?

It’s gone–the windows, the doors, everything. Just kidding, you can find it here, though I’m not sure why you’d want to look at it. The data grouping and manipulation bits were re-written (so they actually worked) with things like facets in mind.


Thanks to all of the ggplot contributors! See ` <./>`__.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ggplot, version 0.11.5
Filename, size File type Python version Upload date Hashes
Filename, size ggplot-0.11.5.tar.gz (1.9 MB) File type Source Python version None Upload date Hashes View
Filename, size ggplot-0.11.5-py2.py3-none-any.whl (2.2 MB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size ggplot-0.11.5-py2.7.egg (2.3 MB) File type Egg Python version 2.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page