4 ms·
Pretty cool. > Sadly, in Python, we do not have a ggplot2. I've got to ask, though: why is that the case?
by airstrike 8y ago
Pretty cool.
> Sadly, in Python, we do not have a ggplot2.
I've got to ask, though: why is that the case?
- X6S1x6Okd1st 8y agomatplotlib & things built upon it e.g. seaborn are the dominate forces in python visualizaiton.
- jhbadger 8y agoI'm not sure it is. I'm more of an R guy, but when I do use python I use plotnine[1], which is very ggplot2-like. [1] https://plotnine.readthedocs.io/en/stable/ https://plotnine.readthedocs.io/en/stable/
- objektif 8y agoIsnt there a ggplot2 like library out there. I remember coming accross one at some point.
- cwyers 8y agoThere are several libraries inspired by the grammar of graphics and ggplot, and there has even been something like a port (although its now abandoned): https://github.com/yhat/ggpy https://github.com/yhat/ggpy What I think the author means is that there is no ggplot in the sense that there's no One Ring To Rule Them All -- ggplot2 basically killed off lattice and base R graphics for about 90% of users. The Python graphics ecosystem is more Balkanized.
- SatvikBeri 8y agoNo fundamental reason. ggplot2 was released 4 years after matplotlib, and the Python ecosystem was already centered around the latter by the time it became obvious that the grammar of graphics approach was superior. Python's surging popularity in the data analysis space is also pretty recent. But any approach to a ggplot2 equivalent either has to abandon the massive ecosystem around matplotlib, or build on top of it – and matplotlib's heavily state-based approach makes that difficult. Plotnine is attempting to do that, I hear it's pretty good.