任何人请帮助我如何在用Python绘制图形对象时删除线条链接散点 在此输入图片描述
`
fig.add_trace(go.Scatter3d(x=x[65000:133083], y=y[65000:133083], z=z[65000:133083], marker=dict(
size=1, # Changed node size...
color=color[65000:133083], # ...and color
colorscale='Viridis',
line=None,
showscale=True)))`
请帮我解决这个问题
您是否尝试过添加:
mode = 'markers',
marker = dict(
size = 12,
# color = z, # set color to an array/list of desired values
colorscale = "Viridis", # choose a colorscale
opacity = 0.8
)
虽然我不确定为什么你的代码确实有行......