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

Function test_canvas_change

lib/matplotlib/tests/test_backend_bases.py:73–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72
73def test_canvas_change():
74 fig = plt.figure()
75 # Replaces fig.canvas
76 canvas = FigureCanvasBase(fig)
77 # Should still work.
78 plt.close(fig)
79 assert not plt.fignum_exists(fig.number)
80
81
82@pytest.mark.backend('pdf')

Callers

nothing calls this directly

Calls 3

FigureCanvasBaseClass · 0.90
figureMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…