()
| 1818 | |
| 1819 | |
| 1820 | def 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 | |
| 1836 | def test_subfigure_row_order(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…