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

Skip to content

Commit 25079bf

Browse files
committed
MNT: set_data on FigureImage marks as stale
1 parent 0e201f9 commit 25079bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ def get_extent(self):
10341034
def set_data(self, A):
10351035
"""Set the image array."""
10361036
cm.ScalarMappable.set_array(self, cbook.safe_masked_invalid(A))
1037+
self.stale = True
10371038

10381039
def set_array(self, A):
10391040
"""Deprecated; use set_data for consistency with other image types."""

0 commit comments

Comments
 (0)