当前位置: 首页>>代码示例>>Python>>正文


Python PlotWidget.setSizeIncrement方法代码示例

本文整理汇总了Python中pyqtgraph.PlotWidget.setSizeIncrement方法的典型用法代码示例。如果您正苦于以下问题:Python PlotWidget.setSizeIncrement方法的具体用法?Python PlotWidget.setSizeIncrement怎么用?Python PlotWidget.setSizeIncrement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyqtgraph.PlotWidget的用法示例。


在下文中一共展示了PlotWidget.setSizeIncrement方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Ui_HitFinding

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setSizeIncrement [as 别名]
class Ui_HitFinding(object):
    def setupUi(self, HitFinding):
        HitFinding.setObjectName(_fromUtf8("HitFinding"))
        HitFinding.resize(622, 817)
        #HitFinding.setFrameShape(QtGui.QFrame.StyledPanel)
        #HitFinding.setFrameShadow(QtGui.QFrame.Raised)
        self.HitRateView = PlotWidget(HitFinding)
        self.HitRateView.setGeometry(QtCore.QRect(20, 20, 590, 400))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.HitRateView.sizePolicy().hasHeightForWidth())
        self.HitRateView.setSizePolicy(sizePolicy)
        self.HitRateView.setMinimumSize(QtCore.QSize(590, 400))
        self.HitRateView.setMaximumSize(QtCore.QSize(590, 400))
        self.HitRateView.setSizeIncrement(QtCore.QSize(1, 1))
        self.HitRateView.setObjectName(_fromUtf8("HitRateView"))
        self.groupBox_4 = QtGui.QGroupBox(HitFinding)
        self.groupBox_4.setGeometry(QtCore.QRect(20, 430, 581, 221))
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.label_24 = QtGui.QLabel(self.groupBox_4)
        self.label_24.setGeometry(QtCore.QRect(444, 71, 17, 21))
        self.label_24.setObjectName(_fromUtf8("label_24"))
        self.label_25 = QtGui.QLabel(self.groupBox_4)
        self.label_25.setGeometry(QtCore.QRect(444, 40, 17, 21))
        self.label_25.setObjectName(_fromUtf8("label_25"))
        self.ROIX1 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIX1.setGeometry(QtCore.QRect(359, 40, 75, 21))
        self.ROIX1.setObjectName(_fromUtf8("ROIX1"))
        self.label_26 = QtGui.QLabel(self.groupBox_4)
        self.label_26.setGeometry(QtCore.QRect(326, 71, 25, 21))
        self.label_26.setObjectName(_fromUtf8("label_26"))
        self.ROIX2 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIX2.setGeometry(QtCore.QRect(359, 71, 75, 21))
        self.ROIX2.setObjectName(_fromUtf8("ROIX2"))
        self.ROIY2 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIY2.setGeometry(QtCore.QRect(471, 71, 76, 21))
        self.ROIY2.setObjectName(_fromUtf8("ROIY2"))
        self.ROIY1 = QtGui.QLineEdit(self.groupBox_4)
        self.ROIY1.setGeometry(QtCore.QRect(471, 40, 76, 21))
        self.ROIY1.setObjectName(_fromUtf8("ROIY1"))
        self.label_27 = QtGui.QLabel(self.groupBox_4)
        self.label_27.setGeometry(QtCore.QRect(326, 40, 25, 21))
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.label_28 = QtGui.QLabel(self.groupBox_4)
        self.label_28.setGeometry(QtCore.QRect(290, 40, 26, 21))
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.UpdateROI = QtGui.QPushButton(self.groupBox_4)
        self.UpdateROI.setGeometry(QtCore.QRect(330, 100, 221, 32))
        self.UpdateROI.setObjectName(_fromUtf8("UpdateROI"))
        self.npix = QtGui.QLineEdit(self.groupBox_4)
        self.npix.setGeometry(QtCore.QRect(100, 70, 51, 21))
        self.npix.setObjectName(_fromUtf8("npix"))
        self.label_22 = QtGui.QLabel(self.groupBox_4)
        self.label_22.setGeometry(QtCore.QRect(30, 39, 61, 21))
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.thresh = QtGui.QLineEdit(self.groupBox_4)
        self.thresh.setGeometry(QtCore.QRect(99, 39, 51, 21))
        self.thresh.setObjectName(_fromUtf8("thresh"))
        self.label_21 = QtGui.QLabel(self.groupBox_4)
        self.label_21.setGeometry(QtCore.QRect(30, 70, 61, 21))
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.clearHitRate = QtGui.QPushButton(self.groupBox_4)
        self.clearHitRate.setGeometry(QtCore.QRect(180, 180, 221, 32))
        self.clearHitRate.setObjectName(_fromUtf8("clearHitRate"))
        self.label_23 = QtGui.QLabel(self.groupBox_4)
        self.label_23.setGeometry(QtCore.QRect(30, 100, 61, 21))
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.ncpus = QtGui.QLineEdit(self.groupBox_4)
        self.ncpus.setGeometry(QtCore.QRect(100, 100, 51, 21))
        self.ncpus.setObjectName(_fromUtf8("ncpus"))
        self.ShowROI = QtGui.QPushButton(self.groupBox_4)
        self.ShowROI.setGeometry(QtCore.QRect(330, 130, 221, 32))
        self.ShowROI.setObjectName(_fromUtf8("ShowROI"))
        self.HitLog = QtGui.QPlainTextEdit(HitFinding)
        self.HitLog.setGeometry(QtCore.QRect(20, 660, 581, 141))
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Courier New"))
        font.setPointSize(10)
        self.HitLog.setFont(font)
        self.HitLog.setObjectName(_fromUtf8("HitLog"))

        self.retranslateUi(HitFinding)
        QtCore.QMetaObject.connectSlotsByName(HitFinding)

    def retranslateUi(self, HitFinding):
        HitFinding.setWindowTitle(_translate("HitFinding", "Frame", None))
        self.groupBox_4.setTitle(_translate("HitFinding", "Hit Finding", None))
        self.label_24.setText(_translate("HitFinding", "Y2", None))
        self.label_25.setText(_translate("HitFinding", "Y1", None))
        self.ROIX1.setText(_translate("HitFinding", "0", None))
        self.label_26.setText(_translate("HitFinding", "X2", None))
        self.ROIX2.setText(_translate("HitFinding", "2167", None))
        self.ROIY2.setText(_translate("HitFinding", "2070", None))
        self.ROIY1.setText(_translate("HitFinding", "0", None))
        self.label_27.setText(_translate("HitFinding", "X1", None))
        self.label_28.setText(_translate("HitFinding", "ROI", None))
        self.UpdateROI.setText(_translate("HitFinding", "Update ROI", None))
        self.npix.setText(_translate("HitFinding", "10", None))
        self.label_22.setText(_translate("HitFinding", "Threshold", None))
#.........这里部分代码省略.........
开发者ID:coquellen,项目名称:NanoPeakCell,代码行数:103,代码来源:LiveHF.py

示例2: Ui_Form

# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setSizeIncrement [as 别名]

#.........这里部分代码省略.........
        self.table_appearance.setColumnCount(2)
        self.table_appearance.setRowCount(6)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setVerticalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setVerticalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        self.table_appearance.setItem(2, 0, item)
        self.table_appearance.horizontalHeader().setVisible(False)
        self.verticalLayout.addWidget(self.table_appearance)
        self.splitter = QtGui.QSplitter(self.splitter_side_bar)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.plot = PlotWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plot.sizePolicy().hasHeightForWidth())
        self.plot.setSizePolicy(sizePolicy)
        self.plot.setSizeIncrement(QtCore.QSize(0, 0))
        self.plot.setObjectName(_fromUtf8("plot"))
        self.layoutWidget1 = QtGui.QWidget(self.splitter)
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget1)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem5)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.spin_x_min = SpinBox(self.layoutWidget1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spin_x_min.sizePolicy().hasHeightForWidth())
        self.spin_x_min.setSizePolicy(sizePolicy)
        self.spin_x_min.setMinimumSize(QtCore.QSize(0, 0))
        self.spin_x_min.setMaximumSize(QtCore.QSize(80, 15))
        self.spin_x_min.setBaseSize(QtCore.QSize(30, 15))
        self.spin_x_min.setObjectName(_fromUtf8("spin_x_min"))
        self.horizontalLayout.addWidget(self.spin_x_min)
        self.spin_x_max = SpinBox(self.layoutWidget1)
        self.spin_x_max.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spin_x_max.sizePolicy().hasHeightForWidth())
        self.spin_x_max.setSizePolicy(sizePolicy)
        self.spin_x_max.setMinimumSize(QtCore.QSize(0, 0))
        self.spin_x_max.setMaximumSize(QtCore.QSize(80, 15))
开发者ID:bencorbett90,项目名称:Graph,代码行数:70,代码来源:tracetab_ui.py


注:本文中的pyqtgraph.PlotWidget.setSizeIncrement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。