File tree 1 file changed +6
-13
lines changed
doc/api/next_api_changes/behavior
1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 1
- *alpha * parameter handling in _ImageBase._make_image
2
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1
+ *alpha * parameter handling on images
2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
3
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".
7
7
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.
You can’t perform that action at this time.
0 commit comments