Python 3.x 如何使用PyQt5在ui上添加子批次
我试图使用pyqt5在ui上显示滚动回归的子批次Python 3.x 如何使用PyQt5在ui上添加子批次,python-3.x,user-interface,plot,pyqt5,widget,Python 3.x,User Interface,Plot,Pyqt5,Widget,我试图使用pyqt5在ui上显示滚动回归的子批次 fig, axs = plt.subplots(len(chart),1,figsize=(15,15),squeeze=False) for item in range(len(chart)): axs[item, 0].plot(mergedStuff1['Dates'],rres.params[chart[item]]) axs[item, 0].set_title(chart[item]) plt.tight_la
fig, axs = plt.subplots(len(chart),1,figsize=(15,15),squeeze=False)
for item in range(len(chart)):
axs[item, 0].plot(mergedStuff1['Dates'],rres.params[chart[item]])
axs[item, 0].set_title(chart[item])
plt.tight_layout()
上面的代码在python控制台上绘制子图。这段代码
for c in range (len(chart)):
self.ui.graph.axes.plot(mergedStuff1['Dates'],rres.params[chart[c]])
正在ui上绘制安全图上的所有线,而不是作为子图。图[c]是数据框中表示回归自变量的列。我使用qt designer绘制了图形——self.ui.graph,其中graph是qt designer中matplotlibwidget的对象名
如何使用qt designer的matplotlibwidget在ui上绘制控制台图形?请提供