logoalt Hacker News

icarusztoday at 2:50 PM2 repliesview on HN

matplotlib is what most folks reach for by default, but I'd argue that's habit and popularity talking, not a real fit advantage. For a lot of plotting work, the grammar-of-graphics libraries — Altair, plotnine — may be the better tool for many people (and Agents); they just don't have the muscle memory behind them.

(Disclosure: I'm at Posit, which supports plotnine.)


Replies

jllyhilltoday at 3:03 PM

What would you say are the benefits of the grammar-of-graphics approach? I've been working with plotting for more than a decade now and have never heard of it. Right now I'm looking through the gallery and can't really grasp what makes this approach better than the one in matplotlib.

PS. It took someone in the comments writing "import plotnine as p9" for me to understand it isn't plotLine.

show 2 replies
SubiculumCodetoday at 2:53 PM

It supports plotnine via plot display window, do you mean?