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
2
u/the_guruji Aug 16 '21
Some could argue that
is overkill compared to
I don't really see the need to use the first over the next for saving to disk cause you can just do
plt.savfigand not useplt.show. Jupyter has%matplotlib inlineby default I think nowadays, so plots show up inline. Are there any performance benefits, cause if so, damn, I should have been using this.People probably recommend
pyplotsince that's the easiest to understand (as long as your requirements are simple enough).