matplotlib / matplotlib/ipympl
MPL Event Handling Doc Example not fully functioning
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 1.7k
- Forks
- 234
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I tried the example from the MPL event handling docs: a bar chart with draggable bars ("extra credit" version). This works fine in QT5Agg backend, but doesn't fully work in Jupyter Lab (v3.0.7) with ipympl (v0.7.0). The plot displays fine, and I can see that click and drag events are being received by the widget, but during drag, the bars vanish. In fact, if in the click handler I include a color change:
self.rect.set(animated=True,color='red')
Then I can see a faint red outline after the bar is "dropped" in the correct location (see below). So clearly the click/drag/release events are working, but the bar drawing during and after drag via draw_artist and blit are not.

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
Reproduce el ejercicio del rectángulo arrastrable de la documentación de gestión de eventos de MPL con JupyterLab 3.0.7 e ipympl 0.7.0 y compáralo después con QT5Agg. Rastrea las llamadas a draw_artist y blit durante el arrastre; se considera terminado cuando las barras permanecen visibles y se pueden arrastrar en el entorno de Jupyter.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- jupyter, python
- Área
- frontend
- 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