Re:Using Altair for most of my visualization in Python
by SatvikBeri on Monday May 06, 2019 @07:57PM
(#19845128)
No 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.
Re:Using Altair for most of my visualization in Python
by jhbadger on Monday May 06, 2019 @06:23PM
(#19844538)
I'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.
Re:Using Altair for most of my visualization in Python
by objektif on Monday May 06, 2019 @06:43PM
(#19844693)
Isnt there a ggplot2 like library out there. I remember coming accross one at some point.
Re:Using Altair for most of my visualization in Python
by cwyers on Monday May 06, 2019 @11:00PM
(#19846062)
There are several libraries inspired by the grammar of graphics and ggplot, and there has even been something like a port (although its now abandoned):
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.
Re:Using Altair for most of my visualization in Python
by X6S1x6Okd1st on Monday May 06, 2019 @05:55PM
(#19844308)
matplotlib & things built upon it e.g. seaborn are the dominate forces in python visualizaiton.
> Sadly, in Python, we do not have a ggplot2.
I've got to ask, though: why is that the case?