mpl_toolkits.axes_grid1#

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

请参阅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_grid1.inset_locator

用于创建或放置内嵌坐标轴的函数和对象集合。

axes_grid1.mpl_axes

axes_grid1.parasite_axes