开发者

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

开发者 https://www.devze.com 2023-02-22 10:09 出处:网络
I\'m confused about what the different between axes a开发者_StackOverflownd axis is in matplotlib. Could someone please explain in an easy-to-understand way?This figure from the documentation will ans

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


This figure from the documentation will answer your question:

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

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


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


in the context of matplotlib,

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

0

精彩评论

暂无评论...
验证码 换一张
取 消