Skip to content

[BUG]: Unexpected display of Scattergl with more than 40 subplots #5585

@simon-mazenoux

Description

@simon-mazenoux

Description

I am observing weird display behavior with Scattergl subplots

Screenshots/Video

Normal behavior (up to 40 subplots):|

Image

Starting 41 subplots:

Image

Steps to reproduce

On Firefox 150.0, Ubuntu 24.04, Wayland, with plotly 6.7.0:

import plotly.graph_objects as go
from plotly.subplots import make_subplots

rows = 50
fig = make_subplots(rows=rows)
fig.update_layout(height=rows * 100)
for row in range(1, rows + 1):
    fig.add_trace(go.Scattergl(x=[0,1], y=[0,1]), row=row, col=1)

html = fig.to_html()
with open("scattergl.html", "w") as f:
    f.write(html)
print("Scattergl plot saved to scattergl.html")

Notes

I also tested with 6.1.0, and the threshold there is 50 instead of 41.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions