plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

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

Open Kevinckyy opened this issue 1 year ago • 1 comments

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)' ])
  )
)

Kevinckyy avatar Jan 08 '24 10:01 Kevinckyy

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 https://github.com/plotly/plotly.js/issues/1267 .

Coding-with-Adam avatar Jan 08 '24 19:01 Coding-with-Adam

duplicate of several earlier reports

gvwilson avatar Jul 11 '24 22:07 gvwilson