r/Python • • Aug 05 '19

Python's response to MATLAB

Post image
4.3k Upvotes

372 comments sorted by

View all comments

125

u/[deleted] Aug 05 '19

Why would matlab feel bad for python?

405

u/Alexanderdaawesome Aug 05 '19

Because Python needs to type

import numpy as np

Before doing anything MATLAB can do.

0

u/[deleted] Aug 05 '19

[deleted]

34

u/mexiKobe Aug 05 '19

matplotlib’s decision to include MATLAB-like state machine plotting was really stupid. It used to be extremely confusing and I would just write to file and use GNUplot

0

u/[deleted] Aug 05 '19

[deleted]

9

u/mexiKobe Aug 05 '19

you must have been doing simple plots because as soon as you needed to really customize things you had to start calling methods

0

u/[deleted] Aug 05 '19

[deleted]

9

u/mexiKobe Aug 05 '19

I’m not saying matplotlib isn’t good for that, I’m saying the pyplot state-based submodule can’t do everything and switching to the OOP interface is jarring and confusing. I mean stuff like customizing tick marks

0

u/[deleted] Aug 05 '19

[deleted]

2

u/mexiKobe Aug 05 '19

absolutely, which is why they shouldn’t have made pyplot. Unfortunately its already become so ingrained that it’s the main way to plot stuff in python. I’m probably gonna start using Seaborn or Bokeh or Altair

→ More replies (0)