Skip to content

ScatterGL alignment fails above height=8190 #4315

Open
@Lxstr

Description

@Lxstr

Below this height everything works fine. Above this height the alignment of scatterGL marks to tickmarks( or grid lines) completely fails. There is no issue with svg scatter.

height=8180:
CleanShot 2023-08-08 at 14 55 04@2x

height=8500:
CleanShot 2023-08-08 at 14 55 33@2x

Code:

import plotly.graph_objects as go
from dash import dcc
import numpy as np
import dash

app = dash.Dash(__name__)

app.layout = dcc.Graph(id="figure", figure={})

y_values=list(range(1, 353))
scatter_trace = go.Scatter(
    x=np.zeros(353),
    y=y_values,
    showlegend=False,  # Exclude this trace from the legend
    mode="markers"
)
layout = go.Layout(
    height=8500,
)
fig = go.Figure(data=[scatter_trace], layout=layout)

fig.update_yaxes(
    range=[0, len(y_values)],
    tickvals=y_values,
)

app.layout.figure = fig

if __name__ == "__main__":
    app.run_server(debug=True)

Versions:
name : plotly
version : 5.15.0

name : dash
version : 2.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions