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

Skip to content

Commit 1ffd66d

Browse files
authored
Merge pull request #8468 from anntzer/clarify-image-set_data-norm
DOC: Clarify that Image.set_data doesn't update normalization.
2 parents 239276e + 91fa7ce commit 1ffd66d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,11 @@ def write_png(self, fname):
578578

579579
def set_data(self, A):
580580
"""
581-
Set the image array
581+
Set the image array.
582582
583583
ACCEPTS: numpy/PIL Image A
584+
585+
Note that this function does *not* update the normalization used.
584586
"""
585587
# check if data is PIL Image without importing Image
586588
if hasattr(A, 'getpixel'):

0 commit comments

Comments
 (0)