bradley.ayers
bradley.ayers

Reputation: 38382

Difference between "axes" and "axis" in matplotlib?

I'm confused about what the different between axes and axis is in matplotlib. Could someone please explain in an easy-to-understand way?

Upvotes: 83

Views: 22355

Answers (3)

JLi
JLi

Reputation: 185

in the context of matplotlib,

axes is not the plural form of axis, it actually denotes the plotting area, including all axis.

Upvotes: 15

Heberto Mayorquin
Heberto Mayorquin

Reputation: 11071

This figure from the documentation will answer your question:

enter image description here

You can find this image here (in the Matplotlib 1.x docs); it's actually been replaced in the Matplotlib 2.x docs.

Upvotes: 120

Bernhard
Bernhard

Reputation: 8831

Axis is the axis of the plot, the thing that gets ticks and tick labels. The axes is the area your plot appears in.

Upvotes: 72

Related Questions