pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/matplotlib/matplotlib/commit/a1247ce6d128b2931755cbedc48431a01a8e0e08

gin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-7a1ad343bd40328c.css" /> DOC: re-word API change note · matplotlib/matplotlib@a1247ce · GitHub
Skip to content

Commit a1247ce

Browse files
tacaswelltimhoffm
andcommitted
DOC: re-word API change note
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 1e07a73 commit a1247ce

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
*alpha* parameter handling in _ImageBase._make_image
2-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1+
*alpha* parameter handling on images
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
This PR expands and clarifies code logic in _ImageBase._make_image
5-
related to the *alpha* parameter, and ensures that `~.Axes.imshow`
6-
exhibits the following behavior:
4+
When passing and array to `imshow(..., alpha=...)`, the parameter was silently ignored
5+
if the image data was a RGB or RBGA image or if `rcParams['interpolation_state']`
6+
resolved to "rbga".
77

8-
1. When the image does not have alpha channel:
9-
- *alpha* not specified: default to 1.0.
10-
- scalar *alpha*: broadcast.
11-
- array *alpha*: concatenate.
12-
2. When the image has an alpha channel:
13-
- *alpha* not specified: nothings needs to be done.
14-
- scalar *alpha*: multiply the alpha channel with user-specified scalar.
15-
- array *alpha*: replace the alpha channel with user-specified array.
8+
This is now fixed, and the alpha array overwrites any previous transparency information.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy