Plotly 3D scatterplot jittery and partially appearing Python

I have a series of points creating a 3D scatter using Plotly that show up ‘sometimes’ but when I rotate the plot it becomes shaky (somewhat convulsive and flashing in and out).

My code looks like this where x, y, z are numpy arrays (of actual length 59 but cut down to 6 for showcasing reasonably):

x             y            z
-119.217     55.2595      -4061.21
-119.217     55.2595      -4061.23
-119.217     55.2595      -4061.54
-119.218     55.2595      -4061.76
-119.217     55.2594      -4062.22
-119.218     55.2595      -4062.63

line = go.Scatter3d(x=x, y=y, z=z, mode='markers',
    marker=dict(
        size=4.0,
        color='#EF509C'
    ), line=dict(
            color='black',
            width=15.5)
)



data = [line]

cam = dict(
    up=dict(x=0, y=0, z=0),
    center=dict(x=0, y=0, z=0),
    eye=dict(x=0, y=0, z=0))


layout = go.Layout(paper_bgcolor='black',
    scene=dict(xaxis=dict(
            gridcolor="#A0A0A0",
            zerolinecolor='rgb(255, 255, 255)',
            showbackground=True,
            backgroundcolor='black'
        ),
        yaxis=dict(
            gridcolor="#A0A0A0",
            zerolinecolor='rgb(255, 255, 255)',
            showbackground=True,
            backgroundcolor='black'
        ),
        zaxis=dict(
            gridcolor="#A0A0A0",
            zerolinecolor='rgb(255, 255, 255)',
            showbackground=True,
            backgroundcolor='black'
        )
    )
)



fig = go.Figure(data=data, layout=layout)
plot(fig, show_link=False)

Pictures are attached to see how it ‘jitters’ and ‘flashes’ in and out while moving around with the mouse.

I can’t figure out the issue at all. Maybe this is something to do with axis issues?? Do I have to specify limits that I’m somehow missing?

1 Like

I’m seeing the same problem 3 years later. Is this working well for anyone?