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?

17806 次浏览

轴线是图的轴线,它可以得到刻度和刻度标签。轴线是你的地块出现的区域。

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.

在 matplotlib 的语境中,

轴不是轴的复数形式,它实际上表示绘图区域,包括所有的轴。