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

Function test_setdata_xya

lib/matplotlib/tests/test_image.py:831–837  ·  view source on GitHub ↗
(image_cls, x, y, a)

Source from the content-addressed store, hash-verified

829 np.arange(3.), np.arange(4.), np.arange(6.).reshape((3, 2))),
830 ])
831def test_setdata_xya(image_cls, x, y, a):
832 ax = plt.gca()
833 im = image_cls(ax)
834 im.set_data(x, y, a)
835 x[0] = y[0] = a[0, 0] = 9.9
836 assert im._A[0, 0] == im._Ax[0] == im._Ay[0] == 0, 'value changed'
837 im.set_data(x, y, a.reshape((*a.shape, -1))) # Just a smoketest.
838
839
840def test_minimized_rasterized():

Callers

nothing calls this directly

Calls 2

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…