Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 575
Van Tai Nguyen Avatar asked Jan 26 '26 08:01

Van Tai Nguyen


1 Answers

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...

like image 64
Mat.B Avatar answered Jan 28 '26 22:01

Mat.B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!