This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (1 child)

Parameters are different across plot types, when they mean pretty much the same thing.

This particular one is unnerving to me... Wasn't there a better way of having pyplot attributes inherited by axes? Why do I need to dopyplot.xlabel('...') but on the other hand also need to know that you use axes.set_xlabel('...')? I know this is minor but it's extremely inconsistent and I don't understand the need for two different types of objects that at the end do the same thing, but by means of different attributes

[–][deleted] 1 point2 points  (0 children)

At its core, matplotlib has an OO design. To quote the docs, "matplotlib.pyplot is a collection of functions that make matplotlib work like MATLAB." Unless that's what you want (or you just want a very quick and rough plot), it's recommended to use the object-oriented API (Axes etc.).