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

Add support for variable opacity #7

Open
astrofrog opened this issue May 28, 2019 · 1 comment
Open

Add support for variable opacity #7

astrofrog opened this issue May 28, 2019 · 1 comment

Comments

@astrofrog
Copy link
Member

One thing that Matplotlib images support that would be good to add here is support for colormaps that have variable opacity - for instance when showing a density map of points, it can be useful to have a colormap that is all the same shade of e.g. glue but using opacity variations for the intensity - this allows multiple different density maps to be shown at the same time.

We could add this here by adding a new scale opacity that could be set to a LinearScale, then update the JS code and shader so that it takes this into account.

@maartenbreddels
Copy link
Collaborator

We can also have an array with values, and we upload that to the shader as texture.

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

2 participants