mpl_toolkits.axes_grid1#

mpl_toolkits.axes_grid1 提供了一个帮助类的框架,用于调整多个固定纵横比 Axes 的位置(例如,显示图像)。它与 Matplotlib Axes 的 aspect 属性形成对比,后者调整单个 Axes 的位置。

关于 axes_grid1 的使用指南,请参阅 axes_grid1 工具包

../../_images/sphx_glr_demo_axes_grid_001.png

备注

此模块包含以前属于 mpl_toolkits.axes_grid 模块的类和函数,该模块在 3.6 版本中被移除。该旧模块中的其他类也可以在 mpl_toolkits.axisartist 中找到。

axes_grid1 API 的子模块包括:

axes_grid1.anchored_artists

axes_grid1.axes_divider

帮助类,用于在绘图时调整多个轴的位置。

axes_grid1.axes_grid

axes_grid1.axes_rgb

axes_grid1.axes_size

提供简单单位的类,这些类将与 AxesDivider 类(或其他类)一起使用,以确定每个 Axes 的大小。

axes_grid1.inset_locator

一组用于创建或放置插入轴的函数和对象。

axes_grid1.mpl_axes

axes_grid1.parasite_axes