Skip to content
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

Color-coding + alpha for density #24

Open
samverstocken opened this issue Nov 29, 2018 · 0 comments
Open

Color-coding + alpha for density #24

samverstocken opened this issue Nov 29, 2018 · 0 comments

Comments

@samverstocken
Copy link

samverstocken commented Nov 29, 2018

Hi all,

So far, this package has been really useful for me.
If anyone is interested, I was able to do some hacks to simultaneously display auxilary information (a third axis) with a colormap while using the density of scatter points to render the transparency.

I made a series of test plots to show what I mean:

Just the density:
0

Just the third axis as colors:
1

Now with BOTH density as transparency and third axis as colors (the density is converted into alpha values on a linear scale)
2

Now the same, but with the alpha rendered on a logarithmic scale (i've implemented this as a flag for the scatter_density function):
3

I added another option to enhance the lower transparencies, still on log scale:
4

If someone is interested in this functionality (I couldn't find any other package that does this..), let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant