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

Skip to content

Commit b82a6a5

Browse files
aliibakerQuLogic
andauthored
Update lib/matplotlib/tests/test_image.py
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent bccfe89 commit b82a6a5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,12 +1227,14 @@ def test_spy_box(fig_test, fig_ref):
12271227
ax_test = fig_test.subplots(1, 3)
12281228
ax_ref = fig_ref.subplots(1, 3)
12291229

1230-
i = 0
1231-
1232-
plot_data = [[1, 1], [1, 1], ], [[0, 0], [0, 0], ], [[0, 1], [1, 0], ]
1230+
plot_data = (
1231+
[[1, 1], [1, 1]],
1232+
[[0, 0], [0, 0]],
1233+
[[0, 1], [1, 0]],
1234+
)
1235+
plot_titles = ["ones", "zeros", "mixed"]
12331236

1234-
for z, title in zip((plot_data), ["ones", "zeros", "mixed"]):
1235-
print(i, z, title)
1237+
for i, (z, title) in enumerate(zip(plot_data, plot_titles)):
12361238
ax_test[i].set_title(title)
12371239
ax_test[i].spy(z)
12381240
ax_ref[i].set_title(title)

0 commit comments

Comments
 (0)