Skip to content

Commit 91fa7ce

Browse files
committed
Clarify that Image.set_data doesn't update normalization.
1 parent b81576c commit 91fa7ce

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)