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

Function test_axesimage_setdata

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

Source from the content-addressed store, hash-verified

804
805
806def test_axesimage_setdata():
807 ax = plt.gca()
808 im = AxesImage(ax)
809 z = np.arange(12, dtype=float).reshape((4, 3))
810 im.set_data(z)
811 z[0, 0] = 9.9
812 assert im._A[0, 0] == 0, 'value changed'
813
814
815def test_figureimage_setdata():

Callers

nothing calls this directly

Calls 3

AxesImageClass · 0.90
gcaMethod · 0.80
set_dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…