Skip to content

Support custom colorscales with rgba on surface traces #4120

@kapraran

Description

@kapraran

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

Activity

changed the title [-]Custom rgba colorscales are broken for surface plots[/-] [+]Support custom colorscales with rgba on surface traces[/+] on Aug 12, 2019
archmoj

archmoj commented on Aug 12, 2019

@archmoj
Contributor

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

kapraran

kapraran commented on Aug 12, 2019

@kapraran
Author

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

archmoj

archmoj commented on Aug 12, 2019

@archmoj
Contributor

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

kapraran

kapraran commented on Aug 12, 2019

@kapraran
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!

added
bugsomething broken
and removed on Sep 25, 2020
self-assigned this
on Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @kapraran@etpinard@archmoj

    Issue actions

      Support custom colorscales with rgba on surface traces · Issue #4120 · plotly/plotly.js