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

Skip to content

Commit 944f13a

Browse files
committed
pass pytest
1 parent 6415a5d commit 944f13a

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
@@ -1816,14 +1816,14 @@ def test_interpolation_stage_rgba_respects_alpha_param(fig_test, fig_ref, intp_s
18161816
axs_ref[1][1].imshow(
18171817
np.concatenate(
18181818
(im_rgb,
1819-
(1 - (1 - array_alpha) * (1 - scalar_alpha)).reshape((ny, nx, 1))),
1819+
(scalar_alpha * array_alpha).reshape((ny, nx, 1))),
18201820
axis=-1),
18211821
interpolation_stage=intp_stage)
18221822
new_array_alpha = np.random.rand(ny, nx)
18231823
axs_tst[1][2].imshow(im_rgba, interpolation_stage=intp_stage, alpha=new_array_alpha)
18241824
axs_ref[1][2].imshow(
18251825
np.concatenate(
18261826
(im_rgb,
1827-
(1 - (1 - array_alpha) * (1 - new_array_alpha)).reshape((ny, nx, 1))),
1827+
(array_alpha * new_array_alpha).reshape((ny, nx, 1))),
18281828
axis=-1),
18291829
interpolation_stage=intp_stage)

0 commit comments

Comments
 (0)