matplotlib / matplotlib/ipympl
Tearing on interactive ROI
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
## Describe the issue
The plots tear heavily when using interactive rois after creating a new environment (`conda create --name testplot ipympl matplotlib jupyterlab`).
First noticed in hyperspy/hyperspy#2706, it appears to be a problem with both mpl 3.3/3.4 and ipympl 0.6/0.7.
[This matplotlib interactive example](https://matplotlib.org/stable/gallery/widgets/rectangle_selector.html#sphx-glr-gallery-widgets-rectangle-selector-py) results in the following output, both with `useblit=True` and `=False`.

## Versions
```
3.9.2 | packaged by conda-forge | (default, Feb 21 2021, 04:59:43) [MSC v.1916 64 bit (AMD64)]
ipympl version: 0.7.0
jupyter core : 4.7.1
jupyter-notebook : 6.3.0
qtconsole : not installed
ipython : 7.22.0
ipykernel : 5.5.3
jupyter client : 6.1.12
jupyter lab : 3.0.14
nbconvert : 6.0.7
ipywidgets : 7.6.3
nbformat : 5.1.3
traitlets : 5.0.5
Known nbextensions:
config dir: C:\Users\thomasaar\Miniconda3\envs\testplot\etc\jupyter\nbconfig
notebook section
jupyter-matplotlib/extension enabled
- Validating: ok
jupyter-js-widgets/extension enabled
- Validating: ok
JupyterLab v3.0.14
C:\Users\thomasaar\Miniconda3\envs\testplot\share\jupyter\labextensions
jupyter-matplotlib v0.9.0 enabled ok
@jupyter-widgets/jupyterlab-manager v3.0.0 enabled ok (python, jupyterlab_widgets)
```
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 tearing con el entorno conda proporcionado, ipympl 0.7.0, JupyterLab 3.0.14 y el ejemplo enlazado de Matplotlib RectangleSelector, probando tanto useblit=True como useblit=False. Rastrea si el problema está en el renderizado interactivo de ROI o en la integración de widgets de Jupyter; se considera terminado cuando el gráfico ya no presenta tearing en la configuración indicada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- jupyter-notebook, python
- Área
- data-visualization, 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