🌐 AI搜索 & 代理 主页
Skip to content

Commit 0e0e2a1

Browse files
committed
Update test
1 parent 835b4db commit 0e0e2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,8 +1571,8 @@ def test_large_image(fig_test, fig_ref, dim, size, msg, origin):
15711571
'accurately displayed.'):
15721572
fig_test.canvas.draw()
15731573

1574-
array = np.zeros((1, 2))
1575-
array[:, 1] = 1
1574+
array = np.zeros((1, size // 2 + 1))
1575+
array[:, array.size // 2:] = 1
15761576
if dim == 'col':
15771577
array = array.T
15781578
im = ax_ref.imshow(array, vmin=0, vmax=1, aspect='auto',

0 commit comments

Comments
 (0)