()
| 804 | |
| 805 | |
| 806 | def 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 | |
| 815 | def test_figureimage_setdata(): |