Skip to content

[BUG] The position relationships of translucent points are shown incorrectly in Scatter3D #4477

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
Kevinckyy opened this issue Jan 8, 2024 · 2 comments

Comments

@Kevinckyy
Copy link

Kevinckyy commented Jan 8, 2024

Hello! I ran into this problem when I used translucent colors for markers on scatter3d. It seems that the points later in the order will always cover the points drawn first. There're the screenshots and the code to generate them:

image
image

import plotly
plotly.__version__
# '5.18.0'
import plotly.graph_objects as go
fig = go.Figure()
fig.add_trace(
  go.Scatter3d(
    x = [0,1,1], y=[0,1,0], z=[0,1,1],
    mode = 'markers',
    marker = dict( color = ['rgba(200,150,100,0.8)', 'rgba(100,200,150,0.8)' ])
  )
)
@Coding-with-Adam
Copy link
Contributor

hi @Kevinckyy
Thanks for reporting this.
Transparency and ordering in 3D is a known problem, and a challenging problem in the graphics research community. For us, it goes all the way back to plotly/plotly.js#1267 .

@gvwilson
Copy link
Contributor

duplicate of several earlier reports

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

3 participants