Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Passing interpolation_stage="rgba" to imshow() results in array-valued alphas being ignored.
from pylab import * im = arange(9).reshape(3, 3) alpha = linspace(0, 1, 9).reshape(3, 3) subplot(121).imshow(im, alpha=alpha) # interpolation_stage="alpha" subplot(122).imshow(im, alpha=alpha, interpolation_stage="rgba") show()
Same image on left and right (interpolation_stage should not matter at all here.
No response
macos
3.10.0.dev260+g7275ad95ff
qtagg
3.12
no
git checkout
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue. The problem is with _ImageBase::_make_image where alpha is written as a scalar when interpolation_stage='rgba'.
_ImageBase::_make_image
alpha
interpolation_stage='rgba'
I have submitted #28437 which will hopefully resolve this issue.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug summary
Passing interpolation_stage="rgba" to imshow() results in array-valued alphas being ignored.
Code for reproduction
Actual outcome
Expected outcome
Same image on left and right (interpolation_stage should not matter at all here.
Additional information
No response
Operating system
macos
Matplotlib Version
3.10.0.dev260+g7275ad95ff
Matplotlib Backend
qtagg
Python version
3.12
Jupyter version
no
Installation
git checkout
The text was updated successfully, but these errors were encountered: