Remove all PyQt references
This commit is contained in:
@@ -30,13 +30,7 @@ try:
|
||||
import matplotlib
|
||||
matplotlib.use('Qt5Agg')
|
||||
|
||||
# Force matplotlib to use PySide backend by temporarily unloading PyQt
|
||||
if 'PyQt5.QtCore' in sys.modules:
|
||||
del sys.modules['PyQt5.QtCore']
|
||||
import matplotlib.pyplot as plt
|
||||
import PyQt5.QtCore
|
||||
else:
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
|
||||
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
|
||||
|
||||
Reference in New Issue
Block a user