本文整理汇总了Python中matplotlibwidget.MatplotlibWidget.plotDataPoints方法的典型用法代码示例。如果您正苦于以下问题:Python MatplotlibWidget.plotDataPoints方法的具体用法?Python MatplotlibWidget.plotDataPoints怎么用?Python MatplotlibWidget.plotDataPoints使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlibwidget.MatplotlibWidget
的用法示例。
在下文中一共展示了MatplotlibWidget.plotDataPoints方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_Form
# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import plotDataPoints [as 别名]
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(649, 501)
self.label = QtGui.QLabel(Form)
self.label.setGeometry(QtCore.QRect(260, 30, 171, 16))
font = QtGui.QFont()
font.setPointSize(16)
self.label.setFont(font)
self.label.setObjectName(_fromUtf8("label"))
self.matplotlibwidget = MatplotlibWidget(Form)
self.matplotlibwidget.setGeometry(QtCore.QRect(130, 80, 400, 300))
self.matplotlibwidget.setObjectName(_fromUtf8("matplotlibwidget"))
self.matplotlibwidget.plotDataPoints(x,y)
self.dial = QtGui.QDial(Form)
self.dial.setGeometry(QtCore.QRect(30, 90, 50, 64))
self.dial.setObjectName(_fromUtf8("dial"))
self.label_2 = QtGui.QLabel(Form)
self.label_2.setGeometry(QtCore.QRect(20, 160, 81, 21))
font = QtGui.QFont()
font.setPointSize(14)
self.label_2.setFont(font)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.retranslateUi(Form)
QtCore.QObject.connect(self.dial, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.label_2.setNum)
QtCore.QObject.connect(self.dial, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.matplotlibwidget.update)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Form", None))
self.label.setText(_translate("Form", "Function: Sin(w.t)", None))
self.label_2.setText(_translate("Form", "TextLabel", None))