Skip to content

FigureCanvasQT backend_qt5agg bug (backend_qt4agg) works #3656

Closed
@atsju

Description

@atsju

In this example,
http://matplotlib.org/examples/user_interfaces/embedding_in_qt4.html (embedding_in_qt4.py)
When replacing
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
through
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg

I got this error
File "C:\Python34\lib\site-packages\matplotlib\backends\backend_qt5.py", line 238, in init
super(FigureCanvasQT, self).init(figure=figure)

When looking at class FigureCanvasQT in backend_qt5.py and backend_qt4.py it seems that super is calling init on first inherited class (QtWidgets.QWidget) instead of second one (FigureCanvasBase).

Let me know if I was not clear enough and if it is realy a bug or a missusage.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions