plotly.py
plotly.py copied to clipboard
[BUG] The position relationships of translucent points are shown incorrectly in Scatter3D
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:
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)' ])
)
)
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 .
duplicate of several earlier reports