本文整理汇总了Python中pyqtgraph.PlotWidget.setMouseTracking方法的典型用法代码示例。如果您正苦于以下问题:Python PlotWidget.setMouseTracking方法的具体用法?Python PlotWidget.setMouseTracking怎么用?Python PlotWidget.setMouseTracking使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyqtgraph.PlotWidget
的用法示例。
在下文中一共展示了PlotWidget.setMouseTracking方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_MainWindow
# 需要导入模块: from pyqtgraph import PlotWidget [as 别名]
# 或者: from pyqtgraph.PlotWidget import setMouseTracking [as 别名]
#.........这里部分代码省略.........
self.resample_check_box.setTristate(False)
self.resample_check_box.setObjectName(_fromUtf8("resample_check_box"))
self.horizontalLayout_6.addWidget(self.resample_check_box)
self.resample_factor = QtGui.QDoubleSpinBox(self.centralwidget)
self.resample_factor.setEnabled(False)
self.resample_factor.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.resample_factor.setMinimum(1.0)
self.resample_factor.setProperty("value", 10.0)
self.resample_factor.setObjectName(_fromUtf8("resample_factor"))
self.horizontalLayout_6.addWidget(self.resample_factor)
self.sr_ref_label = QtGui.QLabel(self.centralwidget)
self.sr_ref_label.setEnabled(False)
font = QtGui.QFont()
font.setPointSize(9)
self.sr_ref_label.setFont(font)
self.sr_ref_label.setObjectName(_fromUtf8("sr_ref_label"))
self.horizontalLayout_6.addWidget(self.sr_ref_label)
self.verticalLayout_5.addLayout(self.horizontalLayout_6)
self.line = QtGui.QFrame(self.centralwidget)
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.verticalLayout_5.addWidget(self.line)
self.horizontalLayout_8 = QtGui.QHBoxLayout()
self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.z_graph = PlotWidget(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.z_graph.sizePolicy().hasHeightForWidth())
self.z_graph.setSizePolicy(sizePolicy)
self.z_graph.setMouseTracking(False)
self.z_graph.setToolTip(_fromUtf8(""))
self.z_graph.setObjectName(_fromUtf8("z_graph"))
self.verticalLayout_2.addWidget(self.z_graph)
self.n_graph = PlotWidget(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.n_graph.sizePolicy().hasHeightForWidth())
self.n_graph.setSizePolicy(sizePolicy)
self.n_graph.setToolTip(_fromUtf8(""))
self.n_graph.setObjectName(_fromUtf8("n_graph"))
self.verticalLayout_2.addWidget(self.n_graph)
self.e_graph = PlotWidget(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.e_graph.sizePolicy().hasHeightForWidth())
self.e_graph.setSizePolicy(sizePolicy)
self.e_graph.setObjectName(_fromUtf8("e_graph"))
self.verticalLayout_2.addWidget(self.e_graph)
self.horizontalLayout_8.addLayout(self.verticalLayout_2)
self.line_2 = QtGui.QFrame(self.centralwidget)
self.line_2.setFrameShape(QtGui.QFrame.VLine)
self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
self.line_2.setObjectName(_fromUtf8("line_2"))
self.horizontalLayout_8.addWidget(self.line_2)
self.verticalLayout_3 = QtGui.QVBoxLayout()
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
self.info_text = QtGui.QTextBrowser(self.centralwidget)
self.info_text.setMinimumSize(QtCore.QSize(470, 100))
self.info_text.setMaximumSize(QtCore.QSize(470, 600))
font = QtGui.QFont()