|
|
|
|
|
by nerdponx
801 days ago
|
|
The object-oriented API and its documentation have improved markedly over the years, I encourage you to give it a try. Most of the official documentation examples use it now. Yes, there are lots of examples out there using the pyplot interface still, but there is enough information on the OO API now that you can get by. 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. |
|
I agree. I used seaborn and matplotlib recently, and I was pleasantly surprised at both how much more consistent the API is and how much more comprehensive the documentation is. I dreaded using it at first but quickly became more accustomed.
> I have much stronger complaints about Seaborn and he will never find me recommending it to anyone.
Interesting, what are your pain points? For me, most of the time I start with seaborn, then modify the underlying matplotlib figure and axes for more customization; only rarely do I start with plt.subplots(). This gives me nice default styles while still allowing me to bend it to my will.