Skip to content

Commit d9240e2

Browse files
authored
Merge pull request matplotlib#11729 from anntzer/pyqt4-pyside2-fix
FIX: Pass 'figure' as kwarg to FigureCanvasQt5Agg super __init__.
2 parents be5f8cc + 0e487fd commit d9240e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/backends/backend_qt5agg.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
class FigureCanvasQTAgg(FigureCanvasAgg, FigureCanvasQT):
1717

18+
def __init__(self, figure):
19+
# Must pass 'figure' as kwarg to Qt base class.
20+
super().__init__(figure=figure)
21+
1822
def paintEvent(self, event):
1923
"""Copy the image from the Agg canvas to the qt.drawable.
2024

0 commit comments

Comments
 (0)