Difference between "axes" and "axis" in matplotlib?
15,487
Solution 1
Axis is the axis of the plot, the thing that gets ticks and tick labels. The axes is the area your plot appears in.
Solution 2
This figure from the documentation will answer your question:
You can find this image here (in the Matplotlib 1.x docs); it's actually been replaced in the Matplotlib 2.x docs.
Solution 3
in the context of matplotlib,
axes is not the plural form of axis, it actually denotes the plotting area, including all axis.
Related videos on Youtube
Author by
bradley.ayers
Updated on April 05, 2020Comments
-
bradley.ayers about 4 years
I'm confused about what the different between
axes
andaxis
is in matplotlib. Could someone please explain in an easy-to-understand way? -
Apostolos almost 6 yearsIs one supposed to get less confused or more confused with this? You say "the axis of the plot, the thing that ..." as if there's a single axis, a single "thing"!!
-
eric about 3 yearsThis was a horrible design decision.