8000 Clarify that Image.set_data doesn't update normalization. · matplotlib/matplotlib@9b93528 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b93528

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/matplotlib/image.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,13 @@ def write_png(self, fname):
578578

579579
def set_data(self, A):
580580
"""
581-
Set the image array
581+
Set the image array.
582582
583-
ACCEPTS: numpy/PIL Image A
583+
Parameters
584+
----------
585+
A : array-like.
586+
587+
Note that this function does *not* update the normalization used.
584588
"""
585589
# check if data is PIL Image without importing Image
586590
if hasattr(A, 'getpixel'):

0 commit comments

Comments
 (0)
0