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:
- renderer
RendererBase, optional Renderer used to draw the figure (i.e.
fig.canvas.get_renderer()).
- renderer
- Returns:
Bboxor NoneThe enclosing bounding box (in figure pixel coordinates), or Noneif clipping results in no intersection.
See also
Artist.get_window_extentGet the artist bounding box, ignoring clipping.
On this page