mpl_qtthread.initialize_qt_teleporter¶
- mpl_qtthread.initialize_qt_teleporter()[source]¶
Set up the Qt ‘teleporter’ to move widget creation to the main thread.
This makes it safe to create Matplotlib figures from threads other than the main one.
Warning
This must be run on the main thread.
- Raises
- RuntimeError
If called from any thread but the main thread