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

Method get_tight_layout

lib/matplotlib/figure.py:2887–2889  ·  view source on GitHub ↗

Return whether `.Figure.tight_layout` is called when drawing.

(self)

Source from the content-addressed store, hash-verified

2885 dpi = property(_get_dpi, _set_dpi, doc="The resolution in dots per inch.")
2886
2887 def get_tight_layout(self):
2888 """Return whether `.Figure.tight_layout` is called when drawing."""
2889 return isinstance(self.get_layout_engine(), TightLayoutEngine)
2890
2891 @_api.deprecated("3.6", alternative="set_layout_engine",
2892 pending=True)

Callers 2

test_valid_layoutsFunction · 0.95
test_tight_toggleFunction · 0.80

Calls 1

get_layout_engineMethod · 0.95

Tested by 2

test_valid_layoutsFunction · 0.76
test_tight_toggleFunction · 0.64