Skip to content

slider changes don't trigger axes (x, y, colorbar) adjustments #4796

Open

Description

When the slider moves, the axes don't adjust to the new data range, but if we download the plot with the current slider selection the view is correct.

Screen.Recording.2024-10-11.at.19.10.47.mov

MRE

plotly==5.24.1

import plotly.express as px
import random

df = px.data.gapminder()
df['numeric_var'] = df['year'].apply(lambda x: x - 1900 + random.randint(-5,5))
fig = px.scatter(
    df, x="gdpPercap", y="numeric_var", animation_frame="year", animation_group="country",
    color="numeric_var", hover_name="country",
    )
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething brokencscustomer successsev-3annoyance with workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions