- Figure.auto_layout(renderer=None, aspect=None, tight=None, resize=None)[source]¶
Automatically adjust the figure size and subplot positions. This is triggered automatically whenever the figure is drawn.
RendererBase, optional) – The renderer. If
Nonea default renderer will be produced.
bool, optional) – Whether to update the figure size based on the reference subplot aspect ratio. By default, this is
True. This only has an effect if the aspect ratio is fixed (e.g., due to an image plot or geographic projection).
bool, optional) – Whether to update the figuer size and subplot positions according to a “tight layout”. By default, this takes on the value of
Figure. If nothing was passed, it is
bool, optional) – If
False, the current figure dimensions are fixed and automatic figure resizing is disabled. By default, the figure size may change unless both
figsizewere passed to
set_size_incheswas called manually, or the figure was resized manually with an interactive backend.