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?

1
48
4/7/2011 3:00:56 AM

Accepted Answer

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

47
4/7/2011 3:05:40 AM

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.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon