|
|
|
|
|
by magnio
787 days ago
|
|
The problem with matplotlib has never been its capability. I consider its rendering backend and resulting image quality to be top-notch, and there are a billion options for you to customize. That second part is the biggest problem with matplotlib: the imperative API cloned from Matlab is just terrible. The vast majority of matplotlib examples are rife with global states and overriding behavior (ever have to set font size twice to force it?) At first I thought that it's a bit clunky due to my inexperience, but no, the API is just that bad. See https://ryxcommar.com/2020/04/11/why-you-hate-matplotlib/ Now, I mean no hate to matplotlib, which is still a solid library. I appreciate their commitment to backward compatibility by keeping all those baggage, and I don't want them to yank them out, given that seaborn already mitigates most of the API problems, and Altair already brings enlightenment to Python plotting. Now if only seaborn works with polars natively ... |
|
Personally I think pyplot is still a perfectly fine interface for just banging out quick data visualization without too much effort, but I find myself very quickly switching to the OO interface as soon as I want a little bit of control over what's going on.
There are still some lingering issues, like the interface discrepancy between scatter and other plotting methods, and the difficulty of making a nicely-formatted color bar. But it's really coming a long way since I started using it in ~2015, And in that time I've actually come to prefer it over both base R and ggplot2, which is what I started with originally.
I have much stronger complaints about Seaborn and he will never find me recommending it to anyone.