matplotlib中“轴”和“轴”之间的区别?

时间:2021-08-26 05:03:18

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

我对matplotlib中轴和轴之间的差异感到困惑。有人可以用一种易于理解的方式解释吗?

2 个解决方案

#1


43  

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

轴是绘图的轴,是刻度和刻度标签的东西。轴是曲线出现的区域。

#2


38  

This figure from the documentation will answer your question:

文档中的这个数字将回答您的问题:

matplotlib中“轴”和“轴”之间的区别?

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

你可以在这里找到这个图像(在Matplotlib 1.x文档中);它实际上已在Matplotlib 2.x文档中被替换。

#1


43  

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

轴是绘图的轴,是刻度和刻度标签的东西。轴是曲线出现的区域。

#2


38  

This figure from the documentation will answer your question:

文档中的这个数字将回答您的问题:

matplotlib中“轴”和“轴”之间的区别?

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

你可以在这里找到这个图像(在Matplotlib 1.x文档中);它实际上已在Matplotlib 2.x文档中被替换。