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
View all comments
Show parent comment
6
u/crawl_dht Aug 16 '21
The arguments in matplotlib gets so ridiculous and big as you feature more data in your graphics. Those arguments could as well be their own separate functions if they were not implemented as arguments. There is no pattern in them and it doesn't look pythonic at all. You just have to learn them as it is and whatever you crammed is not reusable for other components because their acceptable arguments are totally different. This adds too much boilerplate in your code.