Figure.set_tight_layout

Figure.set_tight_layout(tight)[source]

Set whether and how tight_layout is called when drawing.

Parameters

tight (bool or dict with keys "pad", "w_pad", "h_pad", "rect" or None) – If a bool, sets whether to call tight_layout upon drawing. If None, use the figure.autolayout rcparam instead. If a dict, pass it as kwargs to tight_layout, overriding the default paddings.