-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
pcolormesh support for masked arrays is incomplete #14327
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
At the risk of sounding like a broken record, this is also fixed by mplcairo :p |
I suspect that the root cause is actually a bit different.
results in
Apparently, the pdf backend does not handle the transparency, which explains the black coloring. There are two potential issues:
Edit: Just saw #14313, so converting masked values to (0, 0, 0, 0) is intended. Hence, we should improve that documentation a litte and the issue here is the pdf backend not respecting transparency. |
@timhoffm: |
@jkseppan Is there any chance you could add RGBA support to the |
I'm taking a look. This seems to be somewhat nontrivial, otherwise Michael would have implemented it in the code originally. |
It seems to me that agg is drawing the triangle edges without using the alpha channel for transparency but does apply it to the shading. Can that be the intention? You can see it in the masked-array example above, but even clearer with something like
|
See #14414 |
Closed by #14414 |
Bug report
Bug summary
As noted in #8802, the pcolormesh test stages a masked array but does not use it. This is probably because masked array support is broken in PDF output with the gouraud shading option.
Code for reproduction
This is a modification of the
test_axes.test_pcolormesh
function:Actual outcome


The pdf (converted to a png for display here) is black in the masked region with gouraud shading:
but the png is as expected.
The text was updated successfully, but these errors were encountered: