self.setParent(parent)
self.axes = self.figure.add_subplot(111, projection='3d')
self.data = np.random.random((3, 100))
self.axes.plot(self.data[(0), :], self.data[(1), :], self.data[(2), :])
if __name__ == '__main__':
    app = QtGui.QApplication(sys.argv)
mw = MainWindow()
mw.show()
s = mw.ui.frame_plot.size()
mw.ui.plotWidget.setGeometry(1, 1, s.width() - 2, s.height() - 2)
sys.exit(app.exec_())
Embed an interactive 3D plot in PySide