We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b4233b + 1f2ca75 commit 553cec1Copy full SHA for 553cec1
1 file changed
lib/matplotlib/tests/test_image.py
@@ -1168,21 +1168,6 @@ def test_respects_bbox():
1168
assert buf_before.getvalue() != buf_after.getvalue() # Not all white.
1169
1170
1171
-def test_image_cursor_formatting():
1172
- fig, ax = plt.subplots()
1173
- # Create a dummy image to be able to call format_cursor_data
1174
- im = ax.imshow(np.zeros((4, 4)))
1175
-
1176
- data = np.ma.masked_array([0], mask=[True])
1177
- assert im.format_cursor_data(data) == '[]'
1178
1179
- data = np.ma.masked_array([0], mask=[False])
1180
- assert im.format_cursor_data(data) == '[0]'
1181
1182
- data = np.nan
1183
- assert im.format_cursor_data(data) == '[nan]'
1184
1185
1186
@check_figures_equal(extensions=['png', 'pdf', 'svg'])
1187
def test_image_array_alpha(fig_test, fig_ref):
1188
"""Per-pixel alpha channel test."""
0 commit comments