Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit553cec1

Browse files
authored
Merge pull request#30465 from trygvrad/remove-test_image_cursor_formatting
removed test_image_cursor_formatting()
2 parents9b4233b +1f2ca75 commit553cec1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

‎lib/matplotlib/tests/test_image.py‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,21 +1168,6 @@ def test_respects_bbox():
11681168
assertbuf_before.getvalue()!=buf_after.getvalue()# Not all white.
11691169

11701170

1171-
deftest_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-
assertim.format_cursor_data(data)=='[]'
1178-
1179-
data=np.ma.masked_array([0],mask=[False])
1180-
assertim.format_cursor_data(data)=='[0]'
1181-
1182-
data=np.nan
1183-
assertim.format_cursor_data(data)=='[nan]'
1184-
1185-
11861171
@check_figures_equal(extensions=['png','pdf','svg'])
11871172
deftest_image_array_alpha(fig_test,fig_ref):
11881173
"""Per-pixel alpha channel test."""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp