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

Method get_constrained_layout

lib/matplotlib/figure.py:2911–2917  ·  view source on GitHub ↗

Return whether constrained layout is being used. See :ref:`constrainedlayout_guide`.

(self)

Source from the content-addressed store, hash-verified

2909 self.stale = True
2910
2911 def get_constrained_layout(self):
2912 """
2913 Return whether constrained layout is being used.
2914
2915 See :ref:`constrainedlayout_guide`.
2916 """
2917 return isinstance(self.get_layout_engine(), ConstrainedLayoutEngine)
2918
2919 @_api.deprecated("3.6", alternative="set_layout_engine('constrained')",
2920 pending=True)

Callers 5

test_valid_layoutsFunction · 0.95
make_axesFunction · 0.45
test_constrained_toggleFunction · 0.45

Calls 1

get_layout_engineMethod · 0.95

Tested by 3

test_valid_layoutsFunction · 0.76
test_constrained_toggleFunction · 0.36