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

Function test_set_figure

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

Source from the content-addressed store, hash-verified

1818
1819
1820def test_set_figure():
1821 fig = plt.figure()
1822 sfig1 = fig.subfigures()
1823 sfig2 = sfig1.subfigures()
1824
1825 for f in fig, sfig1, sfig2:
1826 with pytest.warns(mpl.MatplotlibDeprecationWarning):
1827 f.set_figure(fig)
1828
1829 with pytest.raises(ValueError, match="cannot be changed"):
1830 sfig2.set_figure(sfig1)
1831
1832 with pytest.raises(ValueError, match="cannot be changed"):
1833 sfig1.set_figure(plt.figure())
1834
1835
1836def test_subfigure_row_order():

Callers

nothing calls this directly

Calls 3

figureMethod · 0.80
subfiguresMethod · 0.80
set_figureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…