| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There is work going on to improve image interpolation. I think that covers
some blending. We should probably make sure of that.
As for your situation, though, use hexbin(). It is designed for these sorts
of plots.
On Jan 30, 2016 7:37 PM, "Goran" notifications@github.com wrote:
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.[image: problem]
https://cloud.githubusercontent.com/assets/6205969/12699436/2f481e32-c7bb-11e5-9003-d23229f51d59.pngI believe the problem is the handling of colors internally. Is it all
linear color space with correct gamma handling ?—
Reply to this email directly or view it on GitHub
#5949.
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 mplcairo.set_option(float_surface=True) (which is basically exactly what this PR asks for)... but you need to be using cairo master for that :-)
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!
| Back | FazBrowse Home | New Git URL |
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 ?