power_scan_h5.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:FoundryDataBrowser 作者: ScopeFoundry 项目源码 文件源码
def setup(self):

        self.settings.New('spec_index', dtype=int, initial=0)
        self.settings.spec_index.add_listener(self.on_spec_index_change)

        self.settings.New("x_axis", dtype=str, initial='power_wheel', choices=('power_wheel', 'pm_power'))

        self.ui = QtWidgets.QGroupBox()
        self.ui.setLayout(QtWidgets.QVBoxLayout())

        self.ui.spec_index_doubleSpinBox = QtWidgets.QDoubleSpinBox()
        self.settings.spec_index.connect_bidir_to_widget(self.ui.spec_index_doubleSpinBox)
        self.ui.layout().addWidget(self.ui.spec_index_doubleSpinBox)

        self.ui.x_axis_comboBox = QtWidgets.QComboBox()
        self.settings.x_axis.connect_to_widget(self.ui.x_axis_comboBox)
        self.ui.layout().addWidget(self.ui.x_axis_comboBox)

        self.graph_layout = pg.GraphicsLayoutWidget()
        self.ui.layout().addWidget(self.graph_layout)

        self.power_plot = self.graph_layout.addPlot()
        self.power_plot.setLogMode(x=True, y=True)

        self.power_plotcurve = self.power_plot.plot([1],[1])

        self.power_plot_current_pos = self.power_plot.plot(symbol='o')
        #self.power_plot_arrow = pg.ArrowItem()
        #self.power_plot_arrow.setPos(0,0)
        #self.power_plot.addItem(self.power_plot_arrow)

        self.graph_layout.nextRow()

        self.spec_plot = self.graph_layout.addPlot()
        self.spec_plotcurve = self.spec_plot.plot([0])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号