-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Clarify that Image.set_data doesn't update normalization. #8468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify that Image.set_data doesn't update normalization. #8468
Conversation
lib/matplotlib/image.py
Outdated
---------- | ||
A : array-like. | ||
|
||
Note that this function does *not* update the normalization used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put this above the Parameters
? Not sure how this will render with numpydoc.
This is going to break how some of the summary tables render. |
9b93528
to
91fa7ce
Compare
I restored the ACCEPTS table because whatever. |
I think this is fine how it is, but I wonder if we should mention how to update the normalization here. |
I don't mind adding a See Also section but then someone needs to address how the ACCEPTS array interact with numpydoc, as mentioned by @tacaswell above. |
Merging this as it is unquestionably an improvement |
DOC: Clarify that Image.set_data doesn't update normalization.
backported to v2.0.x as 6e087ea |
See #8467.
PIL images are array-likes (in the sense that they can be passed to
asarray
) so we don't need to mention them explicitly.