plotly / plotly/plotly.py

[BUG]: Plotly (Dash) not updating xaxes range via Patch method when subplots are horizontal

Abierto
#5,480 2 comentarios 0 reacciones 1 asignado Ver en GitHub

@emilykl ya está trabajando en esto.

Desde el 4/2/2026.

bug
Lenguaje dominante
Python
Estrellas
18.8k
Forks
2.8k
Merge medio
16 h 26 min
PR fusionados (30 d)
21

Descripción

Description

Plotly (Dash) not updating xaxes range via Patch method when 2 subplots are horizontal make_subplots(rows=1, cols=2, shared_xaxes="all"). It works fine when the two subplots are vertical.

Plotly / Dash versions
plotly 6.5.2
dash 3.4.0

Screenshots/Video

Horizontal: On 1st Forward or Backward click half the trend disappears, because the range does not get updated.
Image

Horizontal: On 2nd Forward or Backward click half the trend disappears, because the range does not get updated.
Image

Vertical Subplots are OK! You can hit Forward/Backward as many times as you want
Image

Steps to reproduce
  1. Run attached code
  2. When Dropdown is Horizontal (default), use Forward/Backward button and trend will disappear in two clicks. The x-range does not keep up when the trend is updated via the Patch method patched_figure["layout"][f"xaxis{index + 1}"]["range"] = [now, now + timedelta(days=4)]
  3. When Dropdown is Vertical, all works as is should. You can hit Forward/Backward as many times as you want.

plotly_dash_patch.py

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.