简体   繁体   中英

remove lines link two scatter points

Anyone please help me how to remove the lines link scatter points when plot with graph objects from Python enter image description here

`
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)))`

Please help me solve this

Have you tried to add:

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
    )

Though i'm not sure why you do have lines given your code...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM