Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11390cd

Browse files
DOC: re-word API change note
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent4895d6c commit11390cd

File tree

1 file changed

+6
-13
lines changed

1 file changed

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

4-
This PR expandsandclarifies code logic in _ImageBase._make_image
5-
related tothe*alpha* parameter, and ensures that `~.Axes.imshow`
6-
exhibits the following behavior:
4+
When passingandarray to `imshow(..., alpha=...)`, the parameter was silently ignored
5+
iftheimage 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)

[8]ページ先頭

©2009-2025 Movatter.jp