(image_cls, x, y, a)
| 829 | np.arange(3.), np.arange(4.), np.arange(6.).reshape((3, 2))), |
| 830 | ]) |
| 831 | def 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 | |
| 840 | def test_minimized_rasterized(): |