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

Function test_tight_toggle

lib/matplotlib/tests/test_tightlayout.py:422–430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420
421
422def test_tight_toggle():
423 fig, ax = plt.subplots()
424 with pytest.warns(PendingDeprecationWarning):
425 fig.set_tight_layout(True)
426 assert fig.get_tight_layout()
427 fig.set_tight_layout(False)
428 assert not fig.get_tight_layout()
429 fig.set_tight_layout(True)
430 assert fig.get_tight_layout()

Callers

nothing calls this directly

Calls 3

set_tight_layoutMethod · 0.80
get_tight_layoutMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…