matplotlib.figure.Figure.set_constrained_layout#

Figure.set_constrained_layout(constrained)[source]#

[Deprecated] Set whetherconstrained_layout is used upon drawing.

If None,rcParams["figure.constrained_layout.use"] (default:False) value will be used.

When providing a dict containing the keysw_pad,h_padthe defaultconstrained_layout paddings will beoverridden. These pads are in inches and default to 3.0/72.0.w_pad is the width padding andh_pad is the height padding.

Parameters:
constrainedbool or dict or None

Notes

Deprecated since version 3.6:Use set_layout_engine('constrained') instead.