()
| 286 | |
| 287 | |
| 288 | def test_old_subplot_compat(): |
| 289 | fig = plt.figure() |
| 290 | assert isinstance(fig.add_subplot(), SubplotBase) |
| 291 | assert not isinstance(fig.add_axes(rect=[0, 0, 1, 1]), SubplotBase) |
| 292 | with pytest.raises(TypeError): |
| 293 | Axes(fig, [0, 0, 1, 1], rect=[0, 0, 1, 1]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…