Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e60973 commit 385e23eCopy full SHA for 385e23e
1 file changed
lib/matplotlib/tests/test_image.py
@@ -1136,7 +1136,7 @@ def test_image_cursor_formatting():
1136
# However, a value of nan will be masked by `cbook.safe_masked_invalid(data)`
1137
# called by `image._ImageBase._normalize_image_array(data)`
1138
# The test is therefore changed to:
1139
- data = cbook.safe_masked_invalid(np.nan)
+ data = cbook.safe_masked_invalid(np.array(np.nan))
1140
assert im.format_cursor_data(data) == '[]'
1141
1142
0 commit comments