mpl_toolkits.mplot3d.axes3d.Axes3D.get_tightbbox#

Axes3D.get_tightbbox(renderer=None,*,call_axes_locator=True,bbox_extra_artists=None,for_layout_only=False)[source]#

Return the tight bounding box of the Axes, including axis and theirdecorators (xlabel, title, etc).

Artists that haveartist.set_in_layout(False) are not includedin the bbox.

Parameters:
rendererRendererBase subclass

renderer that will be used to draw the figures (i.e.fig.canvas.get_renderer())

bbox_extra_artistslist ofArtist orNone

List of artists to include in the tight bounding box. IfNone (default), then all artist children of the Axes areincluded in the tight bounding box.

call_axes_locatorbool, default: True

Ifcall_axes_locator isFalse, it does not call the_axes_locator attribute, which is necessary to get the correctbounding box.call_axes_locator=False can be used if thecaller is only interested in the relative size of the tightbboxcompared to the Axes bbox.

for_layout_onlydefault: False

The bounding box willnot include the x-extent of the title andthe xlabel, or the y-extent of the ylabel.

Returns:
BboxBase

Bounding box in figure pixel coordinates.