As the title say, if I plot more than 20 points with
plotly.graph_objects.Scatter, the marks of the graph disappear. I’ve set up the following minimum reproducible example
import numpy as np import plotly import plotly.express as px import plotly.graph_objects as go print(plotly.__version__, '\n-------') def plot(n): fig = go.Figure() fig.update_layout(width=500, height=300) fig.add_trace(go.Scatter(x=np.arange(n), y=np.arange(n))) fig.show() for n in [10, 15, 19, 20, 30, 100]: print(n) plot(n)
And the outputs are:
As you can see, for
n >= 20, the scatter points disappear. I tried without setting the
height of the Figure, and without defining
go.Scatter, but the problem persists. What is happening here?