r/Python • • Aug 16 '21

Discussion Anyone else despises Matplotlib?

Every time I need to use mpl for a project I die a little inside. The API feels like using a completely different language, I simply can't make a basic plot without having to re-google stuff as everything feels anti intuitive.

Plus, the output bothers me too. Interactive plots feel extremely awkward, and its just wonky

EDIT: Despises working with matplotlib*. I'm thankful such a powerful library exists, and I get that for scientific papers and stuff like that it's great, but damn isn't it painful to use

711 Upvotes

165 comments sorted by

View all comments

Show parent comment

6

u/bw_mutley Aug 16 '21

I am quite surprised with this post and the commentaries. I've never thought of Matplotlib this way. I've only tried Seaborn and didn't like it. But this comment explained a lot. I feel like I can do a lot with matplotlib, and I don't think it is that hard to learn.

The API feels like using a completely different language...

Never seen like that. I know there are some commands which are not the best example of what the Zen of Python suggests. But I think it is pythonic enough. Maybe plotting with matplotlib may lead to a rather verbose code, which often repeats itself. But you can plot with two lines of code if needed. So, I think this post is unfair at the very least.