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

Skip to content

Commit 1e017ed

Browse files
committed
Removed redundant call for safe_masked_invalid
1 parent 467efbb commit 1e017ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,8 +1345,7 @@ def make_image(self, renderer, magnification=1.0, unsampled=False):
13451345

13461346
def set_data(self, A):
13471347
"""Set the image array."""
1348-
cm.ScalarMappable.set_array(self,
1349-
cbook.safe_masked_invalid(A, copy=True))
1348+
cm.ScalarMappable.set_array(self, A)
13501349
self.stale = True
13511350

13521351

0 commit comments

Comments
 (0)