has2k1/plotnine
View on GitHub ↗ ★ 4,780 Python
A Grammar of Graphics for Python
18 mentions on Hacker News by 17 people: 4 stories, 14 comments · first 2017-05-27 · latest 2026-06-23
20082026
-
To your last point, have you tried plotnine? It's meant to be ggplot2 for python. https://github.com/has2k1/plotnine
comment by eyegor · 2024-02-12 · in A look at the Mojo language for bioinformatics -
…"mpg", color="factor(gear)")) + geom_point() + stat_smooth(method="lm") + facet_wrap("~gear")) From https://github.com/has2k1/plotnine , their front page examples. I get that it's ripping off the ggplot api, but why would they not alias…
comment by eyegor · 2024-02-01 · in Gnuplotlib: A gnuplot-based plotting backend for NumPy -
There are Python ports of ggplot (e.g. plotnine ( https://github.com/has2k1/plotnine )), but agreed, Python is behind here. I'm not the best at data viz, but I can usually piece together a way to make ggplot do what I want it to do without…
comment by mrtranscendence · 2021-09-14 · in Scikit-Learn Version 1.0 -
Data scientists at my previous company switched to https://github.com/has2k1/plotnine when we made a big push to python. Bit closer api to ggplot than Altair.
comment by tkinz27 · 2020-06-04 · in Altair – A declarative statistical visualization library for Python -
…to a json file and then rendered by a process external to Python, so good luck tweaking your plot. https://github.com/has2k1/plotnine
comment by koningrobot · 2019-11-16 · in Effectively Using Matplotlib (2017) -
I'm partial to plotnine ( https://github.com/has2k1/plotnine ). It is an implementation of grammar of graphics in python (like ggplot2). It provides a stateless layer like interface which feels intuitive, and avoids bugs due to global…
comment by sacheendra · 2019-05-06 · in Using Altair for most of my visualization in Python -
…to convert to interactive using plotly (but there isn't that kind of support for plotnine yet). https://github.com/has2k1/plotnine
comment by closed · 2019-03-11 · in The ggplot flipbook – building charts slowly -
The good python port is https://github.com/has2k1/plotnine/
comment by j88439h84 · 2019-03-03 · in Xkcd-Style Plots in Matplotlib (2012) -
…into Python options I had thought plotnine was dead, but looking at the GitHub that's not the case: https://github.com/has2k1/plotnine I'll give it a shot! :)
comment by minimaxir · 2018-11-16 · in Python Data Visualization 2018: Why So Many Libraries? -
Repo https://github.com/has2k1/plotnine Docs https://plotnine.readthedocs.io/en/latest/
comment by waynenilsen · 2018-07-03 · in Plotnine is the best Python implementation of R's ggplot2 -
https://github.com/has2k1/plotnine matches the ggplot2 API and philosophy very closely and returns good results. It's not as polished as ggplot2 but is excellent for day-to-day work. The author also accepts PR's and is quick to respond to…
comment by huac · 2018-05-04 · in Altair: Declarative Visualization in Python -
For ggplot2 there is plotnine https://github.com/has2k1/plotnine (disscussion https://news.ycombinator.com/item?id=14430447 ) Also Python is not a "statistician" language so the adoption there is very slow.
comment by type0 · 2017-08-31 · in Python Overtakes R in Data Science and Machine Learning Platforms