matplotlib.axis.Axis.get_tightbbox#
- Axis.get_tightbbox(renderer=None,*,for_layout_only=False)[source]#
Return a bounding box that encloses the axis. It only accountstick labels, axis label, and offsetText.
Iffor_layout_only is True, then the width of the label (if thisis an x-axis) or the height of the label (if this is a y-axis) iscollapsed to near zero. This allows tight/constrained_layout to ignoretoo-long labels when doing their layout.
On this page