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

Function test_figureimage_setdata

lib/matplotlib/tests/test_image.py:815–821  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

813
814
815def test_figureimage_setdata():
816 fig = plt.gcf()
817 im = FigureImage(fig)
818 z = np.arange(12, dtype=float).reshape((4, 3))
819 im.set_data(z)
820 z[0, 0] = 9.9
821 assert im._A[0, 0] == 0, 'value changed'
822
823
824@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

set_dataMethod · 0.95
FigureImageClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…