mpl.figure.Rectangle.get_window_extent

Rectangle.get_window_extent(renderer=None)