Skip to content

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.

3 participants