matplotlib / matplotlib/mpl-gui

Differences with show() between backends

Aperta
#1 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Python
Stelle
17
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I was just testing out the examples from the docs and figured I would put some quick findings here while running on a Mac.

  • Documentation: Change subplot_module to subplot_mosaic in a couple of places in the code samples
  • qt5agg: mg.show() does not exit after closing both figures, the event loop keeps running
  • macosx: mg.show() closing one figure closes all of the figures, as if the closeWindow gets sent to every figure, not just the one clicked.
  • tkagg: In the second fr.show() call in the examples I get this error: _tkinter.TclError: can't invoke "wm" command: application has been destroyed (macosx seems to get through this and the qt5agg I don't think ever even gets here due to the event loop not quiting after the first show() as mentioned above)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo gli esempi documentati su macOS con i backend qt5agg, macosx e tkagg, concentrandoti sul comportamento segnalato di show() e della chiusura delle figure per ciascun caso. Esamina gli esempi che contengono subplot_module e i punti di ingresso show/close specifici del backend menzionati nel report. Il lavoro è completato quando gli esempi usano subplot_mosaic e ogni backend gestisce i casi segnalati di event-loop, chiusura della finestra e seconda chiamata a show() senza gli errori indicati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
desktop
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.