-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Transparency, color mixing, gamma & linear color space ? #5949
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
There is work going on to improve image interpolation. I think that covers As for your situation, though, use hexbin(). It is designed for these sorts
|
Currently we do blending in uint8 RGBA buffers, to support this we would need to move to doing the blending in float buffers. This will involved a good deal of c++ work in the AGG layer and possibly work with the upstream Agg project. |
@mdboom Has reported (more or less) that the Agg folks claim this should work, but when he tried it (recently) it did not work as advertised. I am not sure where the branch he was working on is though. |
This was fixed by #5718. |
@QuLogic I do not understand how this was fixed. |
Err, wait, this might be the wrong issue actually? Let me double-check. |
Yep, sorry for the noise. My tabs got crossed somehow and I meant to ask @gvinterhalter for a small example, but in the meantime I've written one myself: import numpy as np
matplotlib.pyplot as plt
np.random.seed(1)
x = np.random.randn(100000)
y = np.random.randn(100000)
plt.plot(x, y, 'o', markerfacecolor='m', markeredgecolor='none', alpha=0.005)
plt.show() |
Can confirm that the above example still produces the same output in version 3.3.2 |
Does this work in mpl-cairo? |
... no, it actually is more pronounced I think... |
It works if you use |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
Hello all.
This is my first time playing with matplotlib so I'm not sure if this is a feature or a bug but I needed to scatter a large number of points that are transparent. I need transparency so that I could observe the density of theses particles (I should probably make a 2D histogram... ). The problem I noticed is that if I increased the alpha of particles I would start to see black. The picture explains it.
I believe the problem is the handling of colors internally. Is it all linear color space with correct gamma handling ?
The text was updated successfully, but these errors were encountered: