[Deprecated] Set padding for constrained_layout.
Tip: The parameters can be passed from a dictionary by using fig.set_constrained_layout(**pad_dict).
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
rcParams["figure.constrained_layout.h_pad"] (default: 0.04167)
Height padding in inches. Defaults to 3 pts.
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.
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.
Deprecated since version 3.6: Use figure.get_layout_engine().set() instead.
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.set_constrained_layout_pads.html