def plotFigure3D(workspace): """GUI layout for plot figure Arguments: workspace {QtWidgets.QWidget} -- main layout Returns: layout {QtWidgets.QVBoxLayout} -- contains matplot figure """ workspace.figure3D = Figure() workspace.canvas3D = FigureCanvas(workspace.figure3D) # workspace.figure3D.patch.set_facecolor('white') class NavigationCustomToolbar(NavigationToolbar): toolitems = [t for t in NavigationToolbar.toolitems if t[0] in ()] workspace.toolbar3D = NavigationCustomToolbar(workspace.canvas3D, workspace) layout = QVBoxLayout() layout.addWidget(workspace.canvas3D) layout.addWidget(workspace.toolbar3D) return layout