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

10

u/Dalnore Aug 16 '21

I haven't tried using either, but both plotly and Altair seem to be more focused on interactive web-based plots, not published plots like matplotlib. From what I can tell, Altair doesn't even have export to EPS, and it can't render mathematical formulas either, so I can't see myself using it. I also have a feeling I'll run into lack of control with plotly when preparing plots for publishing. Or should I try?

3

u/[deleted] Aug 16 '21

Not OP but IMO look into seaborn. It's a wrapper on top of matplotlib so you have all the features and control you need, but it's a lot less code to write for typical plots and integrates nicely with DataFrames.