Strange animation behavior with improperly specified color
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 18.8k
- Forks
- 2.8k
- Merge medio
- 16 h 26 min
- PR fusionados (30 d)
- 21
Descripción
When a scatter line color is specified using rgb() with float values in [0, 1] rather than integers in [0, 255], it seems to actually produce the expected color. However, when animating a scatter trace with a constant color specified this way, it turns to black during the animation. If the animation sets redraw=True it will go back to the "correct" color after the transition completes, but if redraw=False then it stays black.
Here's a colab that demonstrates the issue: https://colab.research.google.com/drive/1enQGu6ProJg22F9KxAwsewf7UvbS3fkF?usp=sharing
I'm not sure if the correct fix to this is to make the animations work the same way as for correctly specified colors or to make incorrectly specified colors always show up as black (i.e. get cast to ints) or raise an error. The current situation results in a difficult to debug behavior.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la reproducción enlazada en Colab y compara las animaciones de scatter usando valores float de rgb() con redraw=True y redraw=False. Rastrea cómo se gestiona el color constante durante la animación frente a después de un redraw y determina luego si los valores de color malformados deben normalizarse, rechazarse o gestionarse de forma coherente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- data-visualization
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100