Skip to content

Support custom colorscales with rgba on surface traces #4120

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

Closed
kapraran opened this issue Aug 12, 2019 · 4 comments · Fixed by #5166
Closed

Support custom colorscales with rgba on surface traces #4120

kapraran opened this issue Aug 12, 2019 · 4 comments · Fixed by #5166
Assignees
Labels
bug something broken

Comments

@kapraran
Copy link

Demo

As you can see on the colorbar next to the plot, most of the surface should be transparent. Instead, it's colorized according to the rgb values of the rgba colorscale (completely ignoring the alpha).

I don't know if this is the expected behavior, but i guess that it's a bug.

Thanks

@etpinard etpinard changed the title Custom rgba colorscales are broken for surface plots Support custom colorscales with rgba on surface traces Aug 12, 2019
@etpinard etpinard added the feature something new label Aug 12, 2019
@archmoj
Copy link
Contributor

archmoj commented Aug 12, 2019

@nikosk93 instead of surface have you ever tried using mesh3d trace?

@kapraran
Copy link
Author

No, i haven't. It seems a bit more complex than the surface one, but i'll give it a try.

@archmoj
Copy link
Contributor

archmoj commented Aug 12, 2019

@nikosk93 here is a codepen to give you an idea!

@kapraran
Copy link
Author

@archmoj wow thanks for your help.

I replicated it a bit by myself here but i had trouble setting the colors. I'll check your pen!

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

Successfully merging a pull request may close this issue.

3 participants