Navigation Menu

Skip to content
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

Fix image alpha #6659

Merged
merged 3 commits into from Jun 29, 2016
Merged

Fix image alpha #6659

merged 3 commits into from Jun 29, 2016

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Jun 28, 2016

Fixes #6540 in a different way than #6551. It turns out the vector backends were already correct and the only bug was in the agg backend. So this just updates the agg backend to ignore the alpha on images.

This is because for the case of interpolation=='none' in a vector backend we explicitly do not want to touch the image data at all, so the alpha must be applied in the vector renderer instructions, not in the image data itself.

The Agg backend doesn't really make sense for that and we always transform the image, so it is a special case.

Cc: @tacaswell

@mdboom mdboom added this to the 2.0 (style change major release) milestone Jun 28, 2016
@tacaswell tacaswell merged commit 31be20b into matplotlib:master Jun 29, 2016
tacaswell added a commit that referenced this pull request Jun 29, 2016
FIX: double image alpha in Agg
@tacaswell
Copy link
Member

backported to v2.x as c0d4321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants