本文整理汇总了Python中pyqtgraph.PlotWidget类的典型用法代码示例。如果您正苦于以下问题:Python PlotWidget类的具体用法?Python PlotWidget怎么用?Python PlotWidget使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PlotWidget类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: Ui_Form
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(400, 300)
self.gridLayout = QtGui.QGridLayout(Form)
self.gridLayout.setObjectName("gridLayout")
self.sizeSpin = QtGui.QSpinBox(Form)
self.sizeSpin.setProperty("value", 10)
self.sizeSpin.setObjectName("sizeSpin")
self.gridLayout.addWidget(self.sizeSpin, 1, 1, 1, 1)
self.pixelModeCheck = QtGui.QCheckBox(Form)
self.pixelModeCheck.setObjectName("pixelModeCheck")
self.gridLayout.addWidget(self.pixelModeCheck, 1, 3, 1, 1)
self.label = QtGui.QLabel(Form)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
self.plot = PlotWidget(Form)
self.plot.setObjectName("plot")
self.gridLayout.addWidget(self.plot, 0, 0, 1, 4)
self.randCheck = QtGui.QCheckBox(Form)
self.randCheck.setObjectName("randCheck")
self.gridLayout.addWidget(self.randCheck, 1, 2, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.pixelModeCheck.setText(QtGui.QApplication.translate("Form", "pixel mode", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("Form", "Size", None, QtGui.QApplication.UnicodeUTF8))
self.randCheck.setText(QtGui.QApplication.translate("Form", "Randomize", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:3rdcycle,项目名称:pyqtgraph,代码行数:31,代码来源:ScatterPlotSpeedTestTemplate_pyside.py
示例2: Ui_MainWindow
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(800, 600)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
MainWindow.setFont(font)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.pushButton = QtGui.QPushButton(self.centralwidget)
self.pushButton.setObjectName(_fromUtf8("pushButton"))
self.gridLayout.addWidget(self.pushButton, 0, 0, 1, 1)
self.plot = PlotWidget(self.centralwidget)
self.plot.setObjectName(_fromUtf8("graphicsView"))
self.gridLayout.addWidget(self.plot, 1, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "BTI Plot Test", None))
self.pushButton.setText(_translate("MainWindow", "Start Listening (settings in bti.py)", None))
开发者ID:BlueSkySolar,项目名称:BTI,代码行数:29,代码来源:btiplottest_ui.py
示例3: Example
class Example(QtGui.QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
self.current_y = 0
self.timer = QtCore.QTimer()
self.timer.timeout.connect(self.update_plot)
self.timer.setInterval(1000/FREQ)
self.timer.start()
def initUI(self):
self.setGeometry(300, 300, 1000, 1000)
self.setWindowTitle('Icon')
self.setWindowIcon(QtGui.QIcon('web.png'))
self.plot = PlotWidget(self, axisItems={'bottom': TimeAxisItem(orientation='bottom')})
self.plot.resize(900, 900)
self.curve = self.plot.plot(x, ys[0])
#self.curve.attach(self.plot)
self.show()
def update_plot(self):
self.curve.setData(x, ys[self.current_y])
self.current_y = (self.current_y + 1) % YS
开发者ID:CINF,项目名称:PyExpLabSys,代码行数:32,代码来源:test_pyqtgraph.py
示例4: Ui_MainWindow
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(386, 376)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.graphicsView = PlotWidget(self.centralwidget)
self.graphicsView.setGeometry(QtCore.QRect(10, 20, 361, 261))
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.pushButton = QtGui.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(280, 290, 95, 31))
self.pushButton.setObjectName(_fromUtf8("pushButton"))
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 386, 27))
self.menubar.setObjectName(_fromUtf8("menubar"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), MainWindow.close)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
self.pushButton.setText(_translate("MainWindow", "Salir", None))
开发者ID:Shortut,项目名称:PythonPlot,代码行数:28,代码来源:PythonPlot.py
示例5: Example
class Example(QtGui.QWidget):
def __init__(self):
super(Example, self).__init__()
self.setGeometry(300, 300, 400, 400)
self.plot = PlotWidget(self, axisItems={'bottom': TimeAxisItem(orientation='bottom')})
self.plot.resize(300, 300)
self.curve = self.plot.plot(np.linspace(0, 10, 100), np.random.random(100))
self.show()
开发者ID:CINF,项目名称:PyExpLabSys,代码行数:8,代码来源:double_axis.py
示例6: __init__
def __init__(self, parent=None, scale_min=0, scale_max=1, steps=0.1, title='None'):
setConfigOption('background', 'w')
PlotWidget.__init__(self, parent, enableMenu=False, border=False, title=title)
self.range_ = arange(scale_min, scale_max, steps)
self.curve = self.plot(self.range_, zeros([len(self.range_)]), clear=False, pen='b')
# self.curve2 = self.plot(self.range_, zeros([len(self.range_)]) + 0.5, clear=False, pen='r')
self.disableAutoRange()
self.setRange(xRange=(scale_min, scale_max))
开发者ID:magicangleimperial,项目名称:pyscanMRI,代码行数:8,代码来源:pyqtgraphwidget.py
示例7: setupUi
def setupUi(self, mainWindow):
mainWindow.setObjectName(_fromUtf8("mainWindow"))
mainWindow.resize(1200, 800)
self.centralwidget = QtGui.QWidget(mainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.verticalLayout0 = QtGui.QVBoxLayout()
self.verticalLayout0.setObjectName(_fromUtf8("verticalLayout0"))
self.splitter0 = QtGui.QSplitter(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(1)
sizePolicy.setHeightForWidth(self.splitter0.sizePolicy().hasHeightForWidth())
self.splitter0.setSizePolicy(sizePolicy)
self.splitter0.setOrientation(QtCore.Qt.Horizontal)
self.splitter0.setObjectName(_fromUtf8("splitter0"))
self.imageView = ImageView(self.splitter0)
self.imageView.setObjectName(_fromUtf8("imageView"))
self.splitter1 = QtGui.QSplitter(self.splitter0)
self.splitter1.setOrientation(QtCore.Qt.Vertical)
self.splitter1.setObjectName(_fromUtf8("splitter1"))
self.hitRatePlotWidget = PlotWidget(self.splitter1)
self.hitRatePlotWidget.setObjectName(_fromUtf8("hitRatePlotWidget"))
self.saturationPlotViewer = PlotWidget(self.splitter1)
self.saturationPlotViewer.setObjectName(_fromUtf8("saturationPlotViewer"))
self.verticalLayout0.addWidget(self.splitter0)
self.horizontalLayout0 = QtGui.QHBoxLayout()
self.horizontalLayout0.setObjectName(_fromUtf8("horizontalLayout0"))
self.resetPeaksButton = QtGui.QPushButton(self.centralwidget)
self.resetPeaksButton.setObjectName(_fromUtf8("resetPeaksButton"))
self.horizontalLayout0.addWidget(self.resetPeaksButton)
self.resetPlotsButton = QtGui.QPushButton(self.centralwidget)
self.resetPlotsButton.setObjectName(_fromUtf8("resetPlotsButton"))
self.horizontalLayout0.addWidget(self.resetPlotsButton)
self.delayLabel = QtGui.QLabel(self.centralwidget)
self.delayLabel.setObjectName(_fromUtf8("delayLabel"))
self.horizontalLayout0.addWidget(self.delayLabel)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout0.addItem(spacerItem)
self.resolutionRingsCheckBox = QtGui.QCheckBox(self.centralwidget)
self.resolutionRingsCheckBox.setObjectName(_fromUtf8("resolutionRingsCheckBox"))
self.horizontalLayout0.addWidget(self.resolutionRingsCheckBox)
self.resolutionRingsLineEdit = QtGui.QLineEdit(self.centralwidget)
self.resolutionRingsLineEdit.setObjectName(_fromUtf8("resolutionRingsLineEdit"))
self.horizontalLayout0.addWidget(self.resolutionRingsLineEdit)
self.accumulatedPeaksCheckBox = QtGui.QCheckBox(self.centralwidget)
self.accumulatedPeaksCheckBox.setObjectName(_fromUtf8("accumulatedPeaksCheckBox"))
self.horizontalLayout0.addWidget(self.accumulatedPeaksCheckBox)
self.verticalLayout0.addLayout(self.horizontalLayout0)
self.gridLayout.addLayout(self.verticalLayout0, 0, 0, 1, 1)
mainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(mainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
mainWindow.setStatusBar(self.statusbar)
self.retranslateUi(mainWindow)
QtCore.QMetaObject.connectSlotsByName(mainWindow)
开发者ID:srchamberlain,项目名称:onda,代码行数:58,代码来源:onda_crystallography_UI.py
示例8: draw_right_part
def draw_right_part(self):
rightPart = QtGui.QVBoxLayout()
from pyqtgraph import PlotWidget
pl = PlotWidget()
self.plotU = pl.plot(pen=(255, 0, 0))
rightPart.addWidget(pl)
self.menuLayout = QtGui.QGridLayout()
temp = QtGui.QHBoxLayout()
templabel = QtGui.QLabel(u' COM порт № ')
self.text_COM_number = QtGui.QLineEdit()
temp.addWidget(templabel)
temp.addWidget(self.text_COM_number)
self.button_setCOM = QtGui.QPushButton(u'Выбрать')
self.button_setCOM.clicked.connect(self.button_setCOM_pressed)
temp.addWidget(self.button_setCOM)
temp.addStretch(1)
#self.menuLayout.addWidget(self.button_setCOM, 0, 1)#, alignment=1)
self.menuLayout.addLayout(temp,0,0)
temp = QtGui.QHBoxLayout()
self.button_hardware = QtGui.QPushButton(u'Старт платформы')
self.button_hardware.clicked.connect(self.button_hardware_pressed)
temp.addWidget(self.button_hardware)
#self.menuLayout.addWidget(self.button_hardware, 1, 0)#, alignment=1)
self.button_watch = QtGui.QPushButton(u'Начать просмотр')
self.button_watch.clicked.connect(self.button_watch_pressed)
temp.addWidget(self.button_watch)
self.button_record = QtGui.QPushButton(u' Начать запись ')
self.button_record.clicked.connect(self.button_record_pressed)
temp.addWidget(self.button_record)
temp.addStretch(1)
self.menuLayout.addLayout(temp, 1,0)#Widget(self.button_watch, 1, 1)#, alignment=1)
self.menuLayout.addLayout(self.build_parameters_menu(), 2, 0)
temp = QtGui.QHBoxLayout()
temp.insertSpacing(-1, 10)
self.string_message = QtGui.QLineEdit()
temp.addWidget(self.string_message)
self.button_send_string = QtGui.QPushButton(u'Отправить строку')
self.button_send_string.clicked.connect(self.button_send_string_pressed)
temp.addWidget(self.button_send_string)
temp.insertStretch(-1, 1)
self.menuLayout.addLayout(temp, 3, 0)#, alignment=1)
rightPart.addLayout(self.menuLayout)
self.parts[1].setLayout(rightPart)
开发者ID:zimka,项目名称:project_platform,代码行数:58,代码来源:main.py
示例9: Ui_Dialog
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(800, 450)
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName("verticalLayout")
self.widget = QtWidgets.QWidget(Dialog)
self.widget.setObjectName("widget")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.widget_3 = QtWidgets.QWidget(self.widget)
self.widget_3.setObjectName("widget_3")
self.label = QtWidgets.QLabel(self.widget_3)
self.label.setGeometry(QtCore.QRect(30, 340, 67, 17))
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.widget_3)
self.label_2.setGeometry(QtCore.QRect(20, 0, 67, 17))
self.label_2.setObjectName("label_2")
self.lineEdit = QtWidgets.QLineEdit(self.widget_3)
self.lineEdit.setGeometry(QtCore.QRect(10, 30, 113, 27))
self.lineEdit.setObjectName("lineEdit")
self.horizontalLayout_2.addWidget(self.widget_3)
self.graphicsView = PlotWidget(self.widget)
self.graphicsView.setMaximumSize(QtCore.QSize(640, 16777215))
self.graphicsView.setObjectName("graphicsView")
self.horizontalLayout_2.addWidget(self.graphicsView)
self.verticalLayout.addWidget(self.widget)
self.widget_2 = QtWidgets.QWidget(Dialog)
self.widget_2.setMaximumSize(QtCore.QSize(16777215, 30))
self.widget_2.setObjectName("widget_2")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget_2)
self.horizontalLayout.setContentsMargins(100, 0, 100, 0)
self.horizontalLayout.setSpacing(100)
self.horizontalLayout.setObjectName("horizontalLayout")
self.pushButton = QtWidgets.QPushButton(self.widget_2)
self.pushButton.setObjectName("pushButton")
self.horizontalLayout.addWidget(self.pushButton)
self.pushButton_3 = QtWidgets.QPushButton(self.widget_2)
self.pushButton_3.setObjectName("pushButton_3")
self.horizontalLayout.addWidget(self.pushButton_3)
self.pushButton_2 = QtWidgets.QPushButton(self.widget_2)
self.pushButton_2.setObjectName("pushButton_2")
self.horizontalLayout.addWidget(self.pushButton_2)
self.verticalLayout.addWidget(self.widget_2)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.label.setText(_translate("Dialog", "TextLabel"))
self.label_2.setText(_translate("Dialog", "TextLabel"))
self.pushButton.setText(_translate("Dialog", "PushButton"))
self.pushButton_3.setText(_translate("Dialog", "PushButton"))
self.pushButton_2.setText(_translate("Dialog", "PushButton"))
开发者ID:Shironofenny,项目名称:BioEE_Colsti,代码行数:57,代码来源:dialogswv_ui.py
示例10: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1341, 925)
MainWindow.setFocusPolicy(QtCore.Qt.NoFocus)
MainWindow.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
MainWindow.setStyleSheet(_fromUtf8("background-color: rgb(60,60,60); QMenuBar{ background-color: rgb(60,60,60)} QMenuBar::Item{background: transparent}; QMenu::Item{background-color: rgb(60,60,60)}; QPushButton{background-color: rgb(A4,A4,A4)};\n"
""))
MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.USVirginIslands))
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setStyleSheet(_fromUtf8("background-color: rgb(60,60,60)"))
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.pltView1 = PlotWidget(self.centralwidget)
self.pltView1.setGeometry(QtCore.QRect(40, 10, 401, 451))
self.pltView1.setObjectName(_fromUtf8("pltView1"))
self.ImageView1 = ImageView(self.centralwidget)
self.ImageView1.setGeometry(QtCore.QRect(40, 480, 611, 361))
self.ImageView1.setObjectName(_fromUtf8("ImageView1"))
self.ImageView2 = ImageView(self.centralwidget)
self.ImageView2.setGeometry(QtCore.QRect(670, 480, 651, 361))
self.ImageView2.setObjectName(_fromUtf8("ImageView2"))
self.updateBtn = QtGui.QPushButton(self.centralwidget)
self.updateBtn.setGeometry(QtCore.QRect(40, 850, 75, 23))
self.updateBtn.setStyleSheet(_fromUtf8("background-color: rgb(117, 117, 117);"))
self.updateBtn.setObjectName(_fromUtf8("updateBtn"))
self.pltView2 = PlotWidget(self.centralwidget)
self.pltView2.setGeometry(QtCore.QRect(460, 10, 441, 451))
self.pltView2.setObjectName(_fromUtf8("pltView2"))
self.ImageView3 = ImageView(self.centralwidget)
self.ImageView3.setGeometry(QtCore.QRect(920, 10, 401, 451))
self.ImageView3.setObjectName(_fromUtf8("ImageView3"))
self.openBtn = QtGui.QPushButton(self.centralwidget)
self.openBtn.setGeometry(QtCore.QRect(130, 850, 75, 23))
self.openBtn.setStyleSheet(_fromUtf8("background-color: rgb(117, 117, 117);"))
self.openBtn.setObjectName(_fromUtf8("openBtn"))
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1341, 21))
font = QtGui.QFont()
font.setStyleStrategy(QtGui.QFont.PreferAntialias)
self.menubar.setFont(font)
self.menubar.setAutoFillBackground(False)
self.menubar.setStyleSheet(_fromUtf8(""))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setStyleSheet(_fromUtf8("background-color: rgb(97, 97, 97);"))
self.menuFile.setObjectName(_fromUtf8("menuFile"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.actionExit = QtGui.QAction(MainWindow)
self.actionExit.setObjectName(_fromUtf8("actionExit"))
self.menuFile.addAction(self.actionExit)
self.menubar.addAction(self.menuFile.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:Crobisaur,项目名称:HyperSpec,代码行数:57,代码来源:HyperSpecGui.py
示例11: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1004, 691)
MainWindow.setMouseTracking(False)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("../../../../../usr/share/pixmaps/cubeview48.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
MainWindow.setWindowOpacity(1.0)
MainWindow.setToolTip("")
MainWindow.setAutoFillBackground(False)
MainWindow.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtGui.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(420, 0, 271, 21))
font = QtGui.QFont()
font.setFamily("URW Chancery L")
font.setPointSize(12)
font.setWeight(75)
font.setItalic(True)
font.setBold(True)
self.label.setFont(font)
self.label.setObjectName("label")
self.graph = PlotWidget(self.centralwidget)
self.graph.setGeometry(QtCore.QRect(20, 30, 981, 351))
self.graph.setObjectName("graph")
self.label_2 = QtGui.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(920, 650, 81, 31))
font = QtGui.QFont()
font.setPointSize(7)
font.setWeight(75)
font.setItalic(True)
font.setBold(True)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.editedgraph = PlotWidget(self.centralwidget)
self.editedgraph.setGeometry(QtCore.QRect(20, 390, 471, 281))
self.editedgraph.setObjectName("editedgraph")
self.dIdVval = QtGui.QLabel(self.centralwidget)
self.dIdVval.setGeometry(QtCore.QRect(670, 390, 151, 16))
self.dIdVval.setText("")
self.dIdVval.setObjectName("dIdVval")
self.dVdIval = QtGui.QLabel(self.centralwidget)
self.dVdIval.setGeometry(QtCore.QRect(670, 420, 151, 16))
self.dVdIval.setText("")
self.dVdIval.setObjectName("dVdIval")
self.fitgraph = PlotWidget(self.centralwidget)
self.fitgraph.setGeometry(QtCore.QRect(500, 390, 501, 281))
self.fitgraph.setObjectName("fitgraph")
MainWindow.setCentralWidget(self.centralwidget)
self.actionSave_as = QtGui.QAction(MainWindow)
self.actionSave_as.setObjectName("actionSave_as")
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:jithinbp,项目名称:Python-gpib-PCAR,代码行数:56,代码来源:template.py
示例12: __init__
def __init__(self,settings):
PlotWidget.__init__(self)
self.trace = self.plot(
[0],
[0],
pen=None,
symbol='o',
symbolPen=None,
symbolSize=3
)
self.update_settings(settings)
开发者ID:creilly,项目名称:sitzlabrad,代码行数:11,代码来源:augergui.py
示例13: __init__
def __init__(self,channel,trace,units):
QtGui.QDialog.__init__(self)
layout = QtGui.QVBoxLayout()
self.setLayout(layout)
plot_widget = PlotWidget(
title='%s trace' % channel,
labels={'left':units}
)
layout.addWidget(plot_widget)
plot = plot_widget.plot(trace)
self.plot = plot
self.trace = trace
开发者ID:creilly,项目名称:sitzlabrad,代码行数:12,代码来源:voltmetergui.py
示例14: Ui_Form
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(911, 696)
self.graphicsView_time = PlotWidget(Form)
self.graphicsView_time.setGeometry(QtCore.QRect(450, 10, 451, 301))
self.graphicsView_time.setObjectName("graphicsView_time")
self.pushButton_plot = QtGui.QPushButton(Form)
self.pushButton_plot.setGeometry(QtCore.QRect(130, 400, 83, 24))
self.pushButton_plot.setObjectName("pushButton_plot")
self.pushButton_measure = QtGui.QPushButton(Form)
self.pushButton_measure.setGeometry(QtCore.QRect(130, 440, 83, 24))
self.pushButton_measure.setObjectName("pushButton_measure")
self.graphicsView_freq = PlotWidget(Form)
self.graphicsView_freq.setGeometry(QtCore.QRect(450, 320, 451, 301))
self.graphicsView_freq.setObjectName("graphicsView_freq")
self.pushButton_liveStart = QtGui.QPushButton(Form)
self.pushButton_liveStart.setGeometry(QtCore.QRect(130, 540, 83, 24))
self.pushButton_liveStart.setObjectName("pushButton_liveStart")
self.pushButton_liveStop = QtGui.QPushButton(Form)
self.pushButton_liveStop.setGeometry(QtCore.QRect(130, 580, 83, 24))
self.pushButton_liveStop.setObjectName("pushButton_liveStop")
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_plot.setText(QtGui.QApplication.translate("Form", "Plot!", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_measure.setText(QtGui.QApplication.translate("Form", "Measure", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_liveStart.setText(QtGui.QApplication.translate("Form", "Live start", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_liveStop.setText(QtGui.QApplication.translate("Form", "Live stop", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:imanmirzaie,项目名称:qttests,代码行数:32,代码来源:test1.py
示例15: Ui_Form
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(560, 236)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.graphicsView = PlotWidget(Form)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.verticalLayout.addWidget(self.graphicsView)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Grafico", None))
开发者ID:raviola,项目名称:LibreLab,代码行数:15,代码来源:ui_grafico.py
示例16: Ui_AifView
class Ui_AifView(object):
def setupUi(self, AifView):
AifView.setObjectName("AifView")
AifView.resize(400, 300)
self.gridLayout = QtGui.QGridLayout(AifView)
self.gridLayout.setObjectName("gridLayout")
self.plotWidget = PlotWidget(AifView)
self.plotWidget.setObjectName("plotWidget")
self.gridLayout.addWidget(self.plotWidget, 0, 0, 1, 1)
self.retranslateUi(AifView)
QtCore.QMetaObject.connectSlotsByName(AifView)
def retranslateUi(self, AifView):
AifView.setWindowTitle(QtGui.QApplication.translate("AifView", "AIF curve", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:AnitaTree,项目名称:DceMrReader,代码行数:15,代码来源:AifCurve.py
示例17: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(820, 650)
MainWindow.setAutoFillBackground(False)
MainWindow.setDocumentMode(False)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setContentsMargins(-1, -1, 0, 0)
self.horizontalLayout.setSpacing(10)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.btnAdd = QtGui.QPushButton(self.centralwidget)
self.btnAdd.setObjectName(_fromUtf8("btnAdd"))
self.horizontalLayout.addWidget(self.btnAdd)
self.chkMore = QtGui.QCheckBox(self.centralwidget)
self.chkMore.setObjectName(_fromUtf8("chkMore"))
self.horizontalLayout.addWidget(self.chkMore)
self.verticalLayout.addLayout(self.horizontalLayout)
self.grPlot = PlotWidget(self.centralwidget)
self.grPlot.setObjectName(_fromUtf8("grPlot"))
self.verticalLayout.addWidget(self.grPlot)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:ninianhong,项目名称:Python-GUI-examples,代码行数:30,代码来源:ui_main.py
示例18: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(1225, 588)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.graphicsView = PlotWidget(self.centralwidget)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.horizontalLayout.addWidget(self.graphicsView)
self.horizontalLayout_3.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.listView = QtGui.QListView(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.listView.sizePolicy().hasHeightForWidth())
self.listView.setSizePolicy(sizePolicy)
self.listView.setObjectName(_fromUtf8("listView"))
self.horizontalLayout_2.addWidget(self.listView)
self.horizontalLayout_3.addLayout(self.horizontalLayout_2)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1225, 26))
self.menubar.setObjectName(_fromUtf8("menubar"))
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:sapphire008,项目名称:Python,代码行数:35,代码来源:Scope2.py
示例19: setupUi
def setupUi(self, DataPlotPanel):
DataPlotPanel.setObjectName(_fromUtf8("DataPlotPanel"))
DataPlotPanel.resize(540, 350)
DataPlotPanel.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.gridLayout = QtGui.QGridLayout(DataPlotPanel)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.graphicsView = PlotWidget(DataPlotPanel)
self.graphicsView.setFrameShape(QtGui.QFrame.StyledPanel)
self.graphicsView.setFrameShadow(QtGui.QFrame.Plain)
self.graphicsView.setObjectName(_fromUtf8("graphicsView"))
self.gridLayout.addWidget(self.graphicsView, 0, 1, 1, 1)
self.treeWidget = QtGui.QTreeWidget(DataPlotPanel)
self.treeWidget.setMaximumSize(QtCore.QSize(200, 16777215))
self.treeWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.treeWidget.setRootIsDecorated(False)
self.treeWidget.setItemsExpandable(False)
self.treeWidget.setExpandsOnDoubleClick(False)
self.treeWidget.setColumnCount(3)
self.treeWidget.setObjectName(_fromUtf8("treeWidget"))
self.treeWidget.header().setVisible(True)
self.treeWidget.header().setDefaultSectionSize(80)
self.gridLayout.addWidget(self.treeWidget, 0, 0, 1, 1)
self.retranslateUi(DataPlotPanel)
QtCore.QMetaObject.connectSlotsByName(DataPlotPanel)
开发者ID:LithiumNL,项目名称:AeroQuadConfiguratorPyQt,代码行数:25,代码来源:DataPlotPanel.py
示例20: setupUi
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.graphicsView = PlotWidget(self.centralwidget)
self.graphicsView.setObjectName("graphicsView")
self.verticalLayout.addWidget(self.graphicsView)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 23))
self.menubar.setDefaultUp(False)
self.menubar.setObjectName("menubar")
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName("menuFile")
MainWindow.setMenuBar(self.menubar)
self.actionOpen = QtGui.QAction(MainWindow)
self.actionOpen.setShortcutContext(QtCore.Qt.ApplicationShortcut)
self.actionOpen.setObjectName("actionOpen")
self.actionExit = QtGui.QAction(MainWindow)
self.actionExit.setObjectName("actionExit")
self.menuFile.addAction(self.actionOpen)
self.menuFile.addSeparator()
self.menubar.addAction(self.menuFile.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:xmnlab,项目名称:minilab,代码行数:32,代码来源:UI_mainWin.py
注:本文中的pyqtgraph.PlotWidget类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论