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

Function test_old_subplot_compat

lib/matplotlib/tests/test_subplots.py:288–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286
287
288def 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])

Callers

nothing calls this directly

Calls 4

AxesClass · 0.90
figureMethod · 0.80
add_subplotMethod · 0.80
add_axesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…