0

I am trying to plot a huge number of data points, if I use the following code, it can work properly

N = 615677
df = pd.DataFrame(dict(x=np.random.randn(N),
                       y=np.random.randn(N),
                       z=np.random.randn(N)))

marker_data = go.Scatter3d(
    x=np.random.randn(N),
    y=np.random.randn(N),
    z=np.random.randn(N),
    marker=go.scatter3d.Marker(size=1),
    mode='markers',
)

fig = go.Figure(data=marker_data)
fig.show()

figure 1, N=615677, normal plot

However, if I set

N = 615678

I will get an empty graph, it only plots axes without any data points.

figure 2, N=615678, wrong plot

Does anyone know what caused it? I can deal with it with downsampling, but it may be not the best way.

0 Answers0