matplotlib.figure.Figure.set_constrained_layout_pads#
- Figure.set_constrained_layout_pads(**kwargs)[source]#
[Deprecated] Set padding for
constrained_layout
.Tip: The parameters can be passed from a dictionary by using
fig.set_constrained_layout(**pad_dict)
.- Parameters:
- w_padfloat, default:
rcParams["figure.constrained_layout.w_pad"]
(default:0.04167
) Width padding in inches. This is the pad around Axes and is meant to make sure there is enough room for fonts to look good. Defaults to 3 pts = 0.04167 inches
- h_padfloat, default:
rcParams["figure.constrained_layout.h_pad"]
(default:0.04167
) Height padding in inches. Defaults to 3 pts.
- wspacefloat, default:
rcParams["figure.constrained_layout.wspace"]
(default:0.02
) Width padding between subplots, expressed as a fraction of the subplot width. The total padding ends up being w_pad + wspace.
- hspacefloat, default:
rcParams["figure.constrained_layout.hspace"]
(default:0.02
) Height padding between subplots, expressed as a fraction of the subplot width. The total padding ends up being h_pad + hspace.
- w_padfloat, default:
Notes
Deprecated since version 3.6: Use figure.get_layout_engine().set() instead.