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

Function test_valid_layouts

lib/matplotlib/tests/test_figure.py:699–710  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

697
698
699def test_valid_layouts():
700 fig = Figure(layout=None)
701 assert not fig.get_tight_layout()
702 assert not fig.get_constrained_layout()
703
704 fig = Figure(layout='tight')
705 assert fig.get_tight_layout()
706 assert not fig.get_constrained_layout()
707
708 fig = Figure(layout='constrained')
709 assert not fig.get_tight_layout()
710 assert fig.get_constrained_layout()
711
712
713def test_invalid_layouts():

Callers

nothing calls this directly

Calls 3

get_tight_layoutMethod · 0.95
FigureClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…