Hacker GitHub

← All repos

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

Mentions per year 18 mentions · busiest year 2019 (5)
20082026
  1. Seems like plotnine renders plots using matplotlib and has matplotlib as a dependency: https://github.com/has2k1/plotnine/blob/f6f5cb424f38329c5267...
    comment by ForceBru · 2026-06-23 · in Plotnine
  2. …You can get a sneak peek by installing the pre-release: pip install --pre plotnine Details here: https://github.com/has2k1/plotnine/issues/1031 Disclaimer: I'm the author.
    comment by has2k1 · 2026-06-23 · in Plotnine
  3. To your last point, have you tried plotnine? It's meant to be ggplot2 for python. https://github.com/has2k1/plotnine
  4. …"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…
  5. 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
  6. 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.
  7. …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)
  8. 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…
  9. …to convert to interactive using plotly (but there isn't that kind of support for plotnine yet). https://github.com/has2k1/plotnine
  10. The good python port is https://github.com/has2k1/plotnine/
    comment by j88439h84 · 2019-03-03 · in Xkcd-Style Plots in Matplotlib (2012)
  11. …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! :)
  12. Repo https://github.com/has2k1/plotnine Docs https://plotnine.readthedocs.io/en/latest/
  13. 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…
  14. 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.