Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 072f1a4

Browse files
committed
Adjust test to use the downsampled image as reference
1 parent 632e4e3 commit 072f1a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/tests/test_image.py

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

1607-
array = np.zeros((1, 2))
1608-
array[:, 1] = 1
1607+
array = np.zeros((1, size // 2 + 1))
1608+
array[:, array.size // 2:] = 1
16091609
if dim == 'col':
16101610
array = array.T
16111611
im = ax_ref.imshow(array, vmin=0, vmax=1, aspect='auto',

0 commit comments

Comments
 (0)