matplotlib.figure.Figure.set_tight_layout#

Figure.set_tight_layout(tight)[source]#

[Deprecated] Set whether and how Figure.tight_layout is called when drawing.

Parameters:
tightbool or dict with keys "pad", "w_pad", "h_pad", "rect" or None

If a bool, sets whether to call Figure.tight_layout upon drawing. If None, use rcParams["figure.autolayout"] (default: False) instead. If a dict, pass it as kwargs to Figure.tight_layout, overriding the default paddings.

Notes

Deprecated since version 3.6: Use set_layout_engine instead.