plotly / plotly/plotly.py

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

Open
#4,796 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug cs P2 sev-3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

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.

https://github.com/user-attachments/assets/9305c8f8-4724-4b96-9f0f-dbaf5159df4c

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided gapminder MRE with plotly 5.24.1 and compare the axes and colorbar after moving the animation slider with the downloaded plot. Trace the animation update entry point used by this example; done when slider changes refresh the x-axis, y-axis, and colorbar ranges to match the selected data.

Written by the indexing model from the issue text.

Assessment

Tech stack
plotly, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.