Closed
Description
Bug report
Bug summary
using Pyside2 as a qt5 backend is failing
Code for reproduction
import matplotlib; matplotlib.use('Qt5Agg'); matplotlib.rcParams['backend.qt5']='PySide2'
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
Actual outcome
fig, ax = plt.subplots()
File "<...>/lib/python3.6/site-packages/matplotlib/pyplot.py", line 1189, in subplots
fig = figure(**fig_kw)
File "<...>/lib/python3.6/site-packages/matplotlib/pyplot.py", line 544, in figure
**kwargs)
File "<...>/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 44, in new_figure_manager
return new_figure_manager_given_figure(num, thisFig)
File "<...>/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 51, in new_figure_manager_given_figure
canvas = FigureCanvasQTAgg(figure)
File "<...>/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 246, in __init__
super(FigureCanvasQTAgg, self).__init__(figure=figure)
File "<...>/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 68, in __init__
super(FigureCanvasQTAggBase, self).__init__(figure=figure)
File "<...>/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 246, in __init__
super(FigureCanvasQT, self).__init__(figure=figure)
AttributeError: 'figure()' is not a Qt property or a signal
Matplotlib version
- Operating System: Ubuntu 17.04
- Matplotlib Version: f107207 (latest commit on master)
- Python Version: 3.6.1
- Other Libraries: Qt 5.8.0 + Pyside2
what can I do ?