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"
orNone
) – If a bool, sets whether to calltight_layout
upon drawing. IfNone
, use thefigure.autolayout
rcparam instead. If a dict, pass it as kwargs totight_layout
, overriding the default paddings.