nguy / artview

ARM Radar Toolkit Viewer
http://nguy.github.io/artview
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

Artview not working in Matplotlib 3.2 #216

Open gamaanderson opened 4 years ago

gamaanderson commented 4 years ago

Just got the news that Artview is not working in Matplotlib 3.2, since there were some deprecations on how to import PyQt4 and PyQt5. I will soon suggest a solution, the recommended way of using PyQt seems to be

from matplotlib.backends.qt_compat import QtCore, QtWidgets, is_pyqt5
if is_pyqt5():
    from matplotlib.backends.backend_qt5agg import (
       FigureCanvas, NavigationToolbar2QT as NavigationToolbar)
else:
    from matplotlib.backends.backend_qt4agg import (
        FigureCanvas, NavigationToolbar2QT as NavigationToolbar)
from matplotlib.figure import Figure

https://matplotlib.org/3.1.1/gallery/user_interfaces/embedding_in_qt_sgskip.html