matplotlib.figure.Figure.get_constrained_layout_pads#

Figure.get_constrained_layout_pads(relative=False)[source]#

[已弃用] 获取 constrained_layout 的填充。

返回一个列表,其中包含 w_pad, h_pad(单位为英寸),以及 wspacehspace 作为子图的比例。如果未使用 constrained_layout,则所有值都为None。

参见 受限布局指南

参数:
relativebool

如果为True,则将单位从英寸转换为相对于图像的比例。

备注

自 3.6 版本弃用:请改用 fig.get_layout_engine().get()