FIX: masked images with interpolation · matplotlib/matplotlib@8786852 · GitHub
Skip to content

Commit 8786852

Browse files
committed
FIX: masked images with interpolation
When determining which pixels to mask in the resampled image, if _any_ contribution to final value comes from a masked pixel, mask the result. Due to Agg special-casing the meaning of the alpha channel, the interpolation for the mask channel needs to be done separately. This is probably a template for doing the over/under separately.
1 parent fbe562c commit 8786852

6 files changed

Lines changed: 324 additions & 7 deletions

File tree

lib/matplotlib/image.py

Lines changed: 38 additions & 7 deletions
Binary file not shown.
25.2 KB
Loading

lib/matplotlib/tests/baseline_images/test_image/imshow_masked_interpolation.svg

Lines changed: 269 additions & 0 deletions
Loading
36 Bytes
Loading

lib/matplotlib/tests/test_image.py

Lines changed: 17 additions & 0 deletions

0 commit comments

Comments
 (0)