You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Saving a pdf, with a single image, grayscale colormap, and transparent background produces a black background #4260
This issue appears to be similar to what eventually got resolved in #1894
If I save a pdf with a single image, grayscale colormap and a transparent background, the axes background does not remain transparent. It becomes a black background. If I deviate from any of those ingredients, then the background is transparent as specified.
I recently fixed one bug related to alpha channels in grayscale images, and I cannot reproduce this problem on current master, so I'll assume the fix helped with this case too. Thanks for a clearly written report, and please feel free to reopen if this reappears.
Activity
dkua commentedon Mar 23, 2015
Can confirm that this also occurs on
Mac OS X 10.9.5, Python 2.7.9, matplotlib 1.4.3
and
Ubuntu 12.04 LTS, Python 2.7.3, matplotlib 1.4.3
jkseppan commentedon Jul 17, 2015
I recently fixed one bug related to alpha channels in grayscale images, and I cannot reproduce this problem on current master, so I'll assume the fix helped with this case too. Thanks for a clearly written report, and please feel free to reopen if this reappears.
breedlun commentedon Oct 20, 2020
I can confirm the issue is gone now. Thanks to @jkseppan.
Changed add_grayscale_image_to_plot test to use matplotlib's imread f…