8000 TST: add comment to test about ringing · matplotlib/matplotlib@856556f · GitHub
[go: up one dir, main page]

Skip to content

Commit 856556f

Browse files
committed
TST: add comment to test about ringing
1 parent ec43d0e commit 856556f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,8 @@ def test_imshow_masked_interpolation():
752752
data = np.arange(N*N, dtype='float').reshape(N, N)
753753

754754
data[5, 5] = -1
755-
755+
# This will cause crazy ringing for the higher-order
756+
# interpolations
756757
data[15, 5] = 1e5
757758

758759
# data[3, 3] = np.nan
@@ -765,6 +766,7 @@ def test_imshow_masked_interpolation():
765766
data = np.ma.masked_array(data, mask)
766767

767768
fig, ax_grid = plt.subplots(3, 6)
769+
768770
for interp, ax in zip(sorted(mimage._interpd_), ax_grid.ravel()):
769771
ax.set_title(interp)
770772
ax.imshow(data, norm=n, cmap=cm, interpolation=interp)

0 commit comments

Comments
 (0)
0