r/Python • • Aug 05 '19

Python's response to MATLAB

Post image
4.3k Upvotes

372 comments sorted by

View all comments

Show parent comments

2

u/monkeybreath Ignoring PEP 8 Aug 05 '19

Isn’t that just if you use matplotlub.pyplot? The underlying API is stateless. The only time I’ve had a problem is with legend(), mostly because I haven’t looked up the underlying API, though I tend to creat the legend entries separately.

1

u/mexiKobe Aug 05 '19

Doesn’t everyone use pyplot?

There was also pylab. Like I said, it was/is confusing

2

u/skiguy0123 Aug 05 '19

3

u/mexiKobe Aug 05 '19

that was rhetorical.. I mean most people use pyplot and every intro matplotlib tutorial I’ve read uses it. The OO interface is the way to go though (or a better plotting package altogether)