matplotlib.axes.Axes.get_window_extent
- Axes.get_window_extent(renderer=None)
Return the Axes bounding box in display space.
This bounding box does not include the spines, ticks, ticklabels, or other labels. For a bounding box including these elements use
get_tightbbox.