Skip to content

Artview not working in Matplotlib 3.2 #216

Description

@gamaanderson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions