matplotlib.figure.Figure.set_tight_layout#

Figure.set_tight_layout(tight)[source]#

[Deprecated] Set whether and howFigure.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 callFigure.tight_layout upon drawing.IfNone, usercParams["figure.autolayout"] (default:False) instead.If a dict, pass it as kwargs toFigure.tight_layout, overriding thedefault paddings.

Notes

Deprecated since version 3.6:Use set_layout_engine instead.