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

Question:

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

Asked By: bradley.ayers

||

Answers:

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

Answered By: Bernhard

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.

Answered By: Heberto Mayorquin

in the context of matplotlib,

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

Answered By: JLi
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.