matplotlib.figure.Figure.get_axes#

Figure.get_axes()[源代码]#

图中的坐标轴列表。您可以通过此列表访问和修改图中的坐标轴。

不要修改列表本身。相反,使用 add_axesadd_subplotdelaxes 来添加或删除一个 Axes。

注意:Figure.axes 属性和 get_axes 方法是等价的。

使用 matplotlib.figure.Figure.get_axes 的示例#

使用 plt.subplots 创建多个子图

Create multiple subplots using plt.subplots

嵌套的 GridSpecs

Nested GridSpecs

在图形中排列多个轴

Arranging multiple Axes in a Figure