MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_constrained_layout_pads

Method get_constrained_layout_pads

lib/matplotlib/figure.py:2374–2388  ·  view source on GitHub ↗

Get padding for ``constrained_layout``. Returns a list of ``w_pad, h_pad`` in inches and ``wspace`` and ``hspace`` as fractions of the subplot. See :ref:`constrainedlayout_guide`. Parameters ---------- relative : bool If `True`,

(self, relative=False)

Source from the content-addressed store, hash-verified

2372 return self._parent.get_constrained_layout()
2373
2374 def get_constrained_layout_pads(self, relative=False):
2375 """
2376 Get padding for ``constrained_layout``.
2377
2378 Returns a list of ``w_pad, h_pad`` in inches and
2379 ``wspace`` and ``hspace`` as fractions of the subplot.
2380
2381 See :ref:`constrainedlayout_guide`.
2382
2383 Parameters
2384 ----------
2385 relative : bool
2386 If `True`, then convert from inches to figure relative.
2387 """
2388 return self._parent.get_constrained_layout_pads(relative=relative)
2389
2390 def get_layout_engine(self):
2391 return self._parent.get_layout_engine()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected