I’m trying to set specific colors to points in scatter 3D. Can’t figure out how to set them to a specific RGB. Any ideas?
x1 = [1,2,3]
y1 = [10,20,30]
z1 = [4,8,16]
elem = ['Element1','Element2','Element3']
fig3 = px.scatter_3d(x = x1, y = y1, z = z1, color = elem,
color_discrete_sequence=['rgb(1.0,0.2663545845364998,0.0)',
'rgb(0.6694260712462251,0.7779863207340414,1.0)',
'rgb(1.0,0.9652869470673199,0.9287833665638421)']
)
fig3.show()
The result is this: