-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
issue with transparency in imshow #16730
New issue
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
Comments
It doesn't look like the number 218 occurs anywhere in that linked script. Would you mind sticking to the template, providing the code that is run and the full error traceback, also filling out the version information (in this case the numpy version might be necessary as well)? |
That’s the issue. The number 218 indeed doesn’t occur anywhere in the script. I have updated the comment as per suggestion. |
Alright, if you are using matplotlib 2.2.3, it would make sense to refer to the corresponding example for that version. https://matplotlib.org/2.2.3/gallery/images_contours_and_fields/image_transparency_blend.html Can you confirm that this runs without error? |
So what's happening is that from matplotlib 3.2 on, |
Ah! okay. Its running perfect. Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Hi, I am trying to understand the following example on how to provide an array-like alpha in imshow.
https://matplotlib.org/3.2.0/gallery/images_contours_and_fields/image_transparency_blend.html
However, the exact same script gives me following errors. What is the source of this bug?
Bug summary
ValueError: operands could not be broadcast together with shapes (218,218) (100,100)
Code for reproduction
Actual outcome
Expected outcome
Matplotlib version
print(matplotlib.get_backend())
): TkAggThe text was updated successfully, but these errors were encountered: