Skip to content

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

Open
@celia-lm

Description

@celia-lm

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()

Activity

added
sev-3annoyance with workaround
P2considered for next cycle
cscustomer success
on Oct 11, 2024
changed the title [-][BUG] Slider changes don't trigger axes (x, y, colorbar) adjustments[/-] [+]slider changes don't trigger axes (x, y, colorbar) adjustments[/+] on Oct 22, 2024
deleted a comment from andretation on Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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

        Participants

        @gvwilson@celia-lm

        Issue actions

          slider changes don't trigger axes (x, y, colorbar) adjustments · Issue #4796 · plotly/plotly.py