matplotlib.figure.Figure.get_constrained_layout_pads#

Figure.get_constrained_layout_pads(relative=False)[source]#

[Deprecated] Get padding for constrained_layout.

Returns a list of w_pad, h_pad in inches and wspace and hspace as fractions of the subplot. All values are None if constrained_layout is not used.

See Constrained layout guide.

Parameters:
relativebool

If True, then convert from inches to figure relative.

Notes

Deprecated since version 3.6: Use fig.get_layout_engine().get() instead.