Top
Best
New

Posted by tosh 4 days ago

Plotnine(plotnine.org)
213 points | 65 commentspage 2
skimmed 6 hours ago|
Nice package! A side-by-side comparison with seaborn would be very nice to see.
a_ba 8 hours ago||
I have used neither in quite a while now but there is an alternative from jetbrains that i started using because it shares the same ergonomics and had better (?) documentation.

https://lets-plot.org/python/

ForceBru 4 hours ago|
It seems like the major difference between plotnine and lets-plot is that plotnine wraps Matplotlib (and thus works everywhere Matplotlib is available, but doesn't offer much interactivity), while lets-plot is written in Kotlin and seems to provide interactive plots.
pwillia7 6 hours ago||
Very cool will have to check this out more.

Semi related -- I made a little d3.js AI wrapper that works pretty well for making quick charts -- https://prompt2chart.com/share/e998a3f6-9482-4c18-931f-a4513...; https://prompt2chart.com/;

persedes 5 hours ago||
Love plotnine when I switched over to python and great to see the project develop! But I have to admit I ended up switching to altair after all which has been my go to in python now.
CuriouslyC 3 hours ago||
Is the selling point for this vs e.g. Plotly just the ggplot style semantics?
epgui 3 hours ago|
The selling point is the grammar of graphics. See Wilkinson on the subject.
vlad-asis 6 hours ago||
I always like to see Hadley Wickam’s masterpiece frameworks emerging around.
domoritz 11 hours ago||
For another grammar-of-graphics-based visualization library (flexibly compose charts rather than simply pick a template), check out Altair https://altair-viz.github.io.
quincymac 7 hours ago||
Nice one. I'm aware of plotnine because ggplot is more intuitive IMHO than say matplotlib.

2 things that would be awesome are interactive plots (hover + text box) and chlorpleth (tiled map) plots.

On closer look you have already nailed the latter!

has2k1 7 hours ago|
There is this new and very promising package that adds interactivity to plotnine graphs https://y-sunflower.github.io/ninejs/.

Disclaimer: I am the author of plotnine.

stared 4 hours ago||
See also Gribouille: A Grammar of Graphics for Typst, discussed here a week ago https://news.ycombinator.com/item?id=48541062.
jpcompartir 9 hours ago|
After plotnine, with a solid & performant (more than the R versions) Python version of Purrr and Dplyr I might never reach for R again!
More comments...