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

Appearance settings

Commit bb05da7

Browse filesBrowse files
committed
change note
1 parent 330c22b commit bb05da7
Copy full SHA for bb05da7

File tree

1 file changed

+14
-0
lines changed
Filter options

1 file changed

+14
-0
lines changed
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
`alpha` parameter handling in `_ImageBase::_make_image`
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
This PR expands and clarifies code logic in `_ImageBase::_make_image` related to
5+
the `alpha` parameter, and ensure that `Axes.imshow` exhibits the following behavior:
6+
7+
1. When the image does not have alpha channel:
8+
- `alpha`` not specified: default to 1.0.
9+
- scalar `alpha``: broadcast.
10+
- array `alpha`: concatenate.
11+
2. When the image has an alpha channel:
12+
- `alpha` not specified: nothings needs to be done.
13+
- scalar `alpha`: multiply the alpha channel with user-specified scalar.
14+
- array `alpha`: replace the alpha channel with user-specified array.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.