matplotlib.artist.Artist.get_tightbbox#

Artist.get_tightbbox(renderer=None)[source]#

Get the artist's bounding box in display space, taking clipping into account.

Parameters:
rendererRendererBase, optional

Renderer used to draw the figure (i.e.fig.canvas.get_renderer()).

Returns:
Bbox or None

The enclosing bounding box (in figure pixel coordinates), or Noneif clipping results in no intersection.

See also

Artist.get_window_extent

Get the artist bounding box, ignoring clipping.