slider changes don't trigger axes (x, y, colorbar) adjustments
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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