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

Skip to content

Commit 6e087ea

Browse files
committed
Merge pull request #8468 from anntzer/clarify-image-set_data-norm
DOC: Clarify that Image.set_data doesn't update normalization.
1 parent 46247c7 commit 6e087ea

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
@@ -579,9 +579,11 @@ def write_png(self, fname):
579579

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

0 commit comments

Comments
 (0)