The example shown in https://matplotlib.org/examples/user_interfaces/embedding_in_qt5.html runs fine when using PyQt5, but when using PySide2 it results in an error (Fatal Python error: deallocating None) as soon as the application is closed.
- duplicates
 - 
                    
PYSIDE-585 Segfault due to reference counting when exiting Jupyter QtConsole
-         
 - Closed
 
 -         
 
- is duplicated by
 - 
                    
PYSIDE-647 Once more a fatal Python error on close when running embedding_in_qt5.py
-         
     - Closed
 
 -