mpl_toolkits.mplot3d.axes3d.Axes3D.get_tightbbox#
- Axes3D.get_tightbbox(renderer=None, *, call_axes_locator=True, bbox_extra_artists=None, for_layout_only=False)[源代码]#
返回 Axes 的紧密边界框,包括轴及其装饰器(xlabel、标题等)。
具有
artist.set_in_layout(False)
的艺术家对象不会包含在边界框中。- 参数:
- renderer
RendererBase
子类 用于绘制图形的渲染器(即
fig.canvas.get_renderer()
)- bbox_extra_artists
Artist
列表或None
要包含在紧密边界框中的艺术家列表。如果为
None
(默认值),则 Axes 的所有子艺术家都将包含在紧密边界框中。- call_axes_locator布尔值,默认值: True
如果 call_axes_locator 为
False
,它不会调用_axes_locator
属性,而该属性对于获取正确的边界框是必需的。call_axes_locator=False
可用于调用者只对紧密边界框相对于 Axes 边界框的相对大小感兴趣的情况。- for_layout_only默认值: False
边界框将不包括标题和 xlabel 的 x 范围,或 ylabel 的 y 范围。
- renderer
- 返回:
BboxBase
图像素坐标中的边界框。