Exemplo n.º 1
0
 def create_2D_plotter(self):
     if not self.ND_plotter is None:
         self.ND_plotter.close()
         self.ND_plotter = None
     self.twoD_plotter, self.plotPrinter = plot_func.create_2D_Plotters(
         self.layout, self.layout_parent)
     self.twoD_plotter.colorbar_needed.connect(self.set_ColorBar)
     self.twoD_plotter.show_ND_Controller.connect(
         self.ND_controller_showDisplay)
     self.twoD_plotter.show_3D_Display.connect(self.show_3D_Display)
     self.twoD_plotter.do_print.connect(self.plotPrinter.do_print)
     self.twoD_plotter.save_display.connect(self.grab_display)
     # create status label display
     self.status_label = Qt.QLabel(self.layout_parent)
     sansFont = QFont("Helvetica [Cronyx]", 8)
     self.status_label.setFont(sansFont)
     #   self.layout.addMultiCellWidget(self.status_label,1,1,0,2)
     self.layout.addWidget(self.status_label, 1, 0, 1, 2)
     self.status_label.setText("Move the mouse within the plot canvas"
                               " to show the cursor position.")
     self.status_label.show()
     self.twoD_plotter.status_update.connect(self.update_status)