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


Python mplwidget.MplWidget类代码示例

本文整理汇总了Python中mplwidget.MplWidget的典型用法代码示例。如果您正苦于以下问题:Python MplWidget类的具体用法?Python MplWidget怎么用?Python MplWidget使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: Ui_MainWindow

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(800, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mplwidget = MplWidget(self.centralwidget)
        self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
        self.gridLayout.addWidget(self.mplwidget, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21))
        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)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
开发者ID:cmoman,项目名称:Sequential_Clearance,代码行数:25,代码来源:ui_matplotlib2.py

示例2: setupUi

    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1056, 687)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.confWidget1 = MplWidget(self.centralwidget)
        self.confWidget1.setGeometry(QtCore.QRect(10, 30, 501, 51))
        self.confWidget1.setObjectName("confWidget1")
        self.btn_redraw = QtGui.QPushButton(self.centralwidget)
        self.btn_redraw.setGeometry(QtCore.QRect(740, 390, 94, 24))
        self.btn_redraw.setObjectName("btn_redraw")
        self.confWidget2 = MplWidget(self.centralwidget)
        self.confWidget2.setGeometry(QtCore.QRect(10, 80, 501, 51))
        self.confWidget2.setObjectName("confWidget2")
        self.confWidget3 = MplWidget(self.centralwidget)
        self.confWidget3.setGeometry(QtCore.QRect(10, 130, 501, 51))
        self.confWidget3.setObjectName("confWidget3")
        self.confWidget4 = MplWidget(self.centralwidget)
        self.confWidget4.setGeometry(QtCore.QRect(10, 180, 501, 51))
        self.confWidget4.setObjectName("confWidget4")
        self.verticalLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(110, 330, 521, 171))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.btn_generateData = QtGui.QPushButton(self.centralwidget)
        self.btn_generateData.setGeometry(QtCore.QRect(740, 320, 94, 24))
        self.btn_generateData.setObjectName("btn_generateData")
        self.btn_loadData = QtGui.QPushButton(self.centralwidget)
        self.btn_loadData.setGeometry(QtCore.QRect(740, 360, 94, 24))
        self.btn_loadData.setObjectName("btn_loadData")
        self.w_colourbar = MplWidget(self.centralwidget)
        self.w_colourbar.setGeometry(QtCore.QRect(510, 30, 31, 201))
        self.w_colourbar.setObjectName("w_colourbar")
        self.le_max = QtGui.QLineEdit(self.centralwidget)
        self.le_max.setGeometry(QtCore.QRect(540, 60, 61, 23))
        self.le_max.setObjectName("le_max")
        self.le_min = QtGui.QLineEdit(self.centralwidget)
        self.le_min.setGeometry(QtCore.QRect(540, 180, 61, 23))
        self.le_min.setObjectName("le_min")
        self.btn_set = QtGui.QPushButton(self.centralwidget)
        self.btn_set.setGeometry(QtCore.QRect(550, 90, 41, 41))
        self.btn_set.setObjectName("btn_set")
        self.btn_clear = QtGui.QPushButton(self.centralwidget)
        self.btn_clear.setGeometry(QtCore.QRect(550, 130, 41, 41))
        self.btn_clear.setObjectName("btn_clear")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1056, 21))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:groakat,项目名称:videotagger,代码行数:58,代码来源:matplotlibDisplay-org_auto.py

示例3: Ui_MplMainWindow

class Ui_MplMainWindow(object):
    def setupUi(self, MplMainWindow):
        MplMainWindow.setObjectName(_fromUtf8("MplMainWindow"))
        MplMainWindow.resize(800, 600)
        self.mplcentralwidget = QtGui.QWidget(MplMainWindow)
        self.mplcentralwidget.setObjectName(_fromUtf8("mplcentralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.mplcentralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.mplhorizontalLayout = QtGui.QHBoxLayout()
        self.mplhorizontalLayout.setObjectName(_fromUtf8("mplhorizontalLayout"))
        self.mpllineEdit = QtGui.QLineEdit(self.mplcentralwidget)
        self.mpllineEdit.setObjectName(_fromUtf8("mpllineEdit"))
        self.mplhorizontalLayout.addWidget(self.mpllineEdit)
        self.mplpushButton = QtGui.QPushButton(self.mplcentralwidget)
        self.mplpushButton.setObjectName(_fromUtf8("mplpushButton"))
        self.mplhorizontalLayout.addWidget(self.mplpushButton)
        self.verticalLayout.addLayout(self.mplhorizontalLayout)
        self.mpl = MplWidget(self.mplcentralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.verticalLayout.addWidget(self.mpl)
        MplMainWindow.setCentralWidget(self.mplcentralwidget)
        self.mplmenubar = QtGui.QMenuBar(MplMainWindow)
        self.mplmenubar.setGeometry(QtCore.QRect(0, 0, 800, 25))
        self.mplmenubar.setObjectName(_fromUtf8("mplmenubar"))
        self.mplmenuFile = QtGui.QMenu(self.mplmenubar)
        self.mplmenuFile.setObjectName(_fromUtf8("mplmenuFile"))
        MplMainWindow.setMenuBar(self.mplmenubar)
        self.mplactionOpen = QtGui.QAction(MplMainWindow)
        self.mplactionOpen.setObjectName(_fromUtf8("mplactionOpen"))
        self.mplactionQuit = QtGui.QAction(MplMainWindow)
        self.mplactionQuit.setObjectName(_fromUtf8("mplactionQuit"))
        self.mplmenuFile.addAction(self.mplactionOpen)
        self.mplmenuFile.addSeparator()
        self.mplmenuFile.addAction(self.mplactionQuit)
        self.mplmenubar.addAction(self.mplmenuFile.menuAction())

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

    def retranslateUi(self, MplMainWindow):
        MplMainWindow.setWindowTitle(_translate("MplMainWindow", "MainWindow", None))
        self.mplpushButton.setText(_translate("MplMainWindow", "PushButton", None))
        self.mplmenuFile.setTitle(_translate("MplMainWindow", "File", None))
        self.mplactionOpen.setText(_translate("MplMainWindow", "Open", None))
        self.mplactionQuit.setText(_translate("MplMainWindow", "Quit", None))
开发者ID:imanmirzaie,项目名称:qttests,代码行数:50,代码来源:qtdesigner.py

示例4: Ui_GpMainWindow

class Ui_GpMainWindow(object):
    def setupUi(self, GpMainWindow):
        GpMainWindow.setObjectName("GpMainWindow")
        GpMainWindow.resize(567, 497)
        self.Gpcentralwidget = QtGui.QWidget(GpMainWindow)
        self.Gpcentralwidget.setObjectName("Gpcentralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.Gpcentralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.GpgridLayout = QtGui.QGridLayout()
        self.GpgridLayout.setObjectName("GpgridLayout")
        self.GppushButton = QtGui.QPushButton(self.Gpcentralwidget)
        self.GppushButton.setObjectName("GppushButton")
        self.GpgridLayout.addWidget(self.GppushButton, 1, 2, 1, 1)
        self.GpradioButton2 = QtGui.QRadioButton(self.Gpcentralwidget)
        self.GpradioButton2.setEnabled(False)
        self.GpradioButton2.setObjectName("GpradioButton2")
        self.GpgridLayout.addWidget(self.GpradioButton2, 1, 1, 1, 1)
        self.GpradioButton = QtGui.QRadioButton(self.Gpcentralwidget)
        self.GpradioButton.setChecked(True)
        self.GpradioButton.setObjectName("GpradioButton")
        self.GpgridLayout.addWidget(self.GpradioButton, 1, 0, 1, 1)
        self.GplineEdit = QtGui.QLineEdit(self.Gpcentralwidget)
        self.GplineEdit.setObjectName("GplineEdit")
        self.GpgridLayout.addWidget(self.GplineEdit, 0, 0, 1, 1)
        self.GplineEdit_2 = QtGui.QLineEdit(self.Gpcentralwidget)
        self.GplineEdit_2.setObjectName("GplineEdit_2")
        self.GpgridLayout.addWidget(self.GplineEdit_2, 0, 1, 1, 1)
        self.GplineEdit_3 = QtGui.QLineEdit(self.Gpcentralwidget)
        self.GplineEdit_3.setEnabled(False)
        self.GplineEdit_3.setObjectName("GplineEdit_3")
        self.GpgridLayout.addWidget(self.GplineEdit_3, 0, 2, 1, 1)
        self.verticalLayout.addLayout(self.GpgridLayout)
        self.Mpl = MplWidget(self.Gpcentralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Mpl.sizePolicy().hasHeightForWidth())
        self.Mpl.setSizePolicy(sizePolicy)
        self.Mpl.setObjectName("Mpl")
        self.verticalLayout.addWidget(self.Mpl)
        GpMainWindow.setCentralWidget(self.Gpcentralwidget)

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

    def retranslateUi(self, GpMainWindow):
        GpMainWindow.setWindowTitle(QtGui.QApplication.translate("GpMainWindow", "Graph Plotter", None, QtGui.QApplication.UnicodeUTF8))
        self.GppushButton.setText(QtGui.QApplication.translate("GpMainWindow", "Draw", None, QtGui.QApplication.UnicodeUTF8))
        self.GpradioButton2.setText(QtGui.QApplication.translate("GpMainWindow", "Plot 3D", None, QtGui.QApplication.UnicodeUTF8))
        self.GpradioButton.setText(QtGui.QApplication.translate("GpMainWindow", "Plot 2D", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:ccluri,项目名称:Qt-learning-tasks,代码行数:50,代码来源:Gplotter.py

示例5: setupUi

    def setupUi(self, Plotterui):
        Plotterui.setObjectName(_fromUtf8("Plotterui"))
        Plotterui.resize(803, 586)
        self.MPLArea = MplWidget(Plotterui)
        self.MPLArea.setGeometry(QtCore.QRect(150, 10, 641, 561))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.MPLArea.sizePolicy().hasHeightForWidth())
        self.MPLArea.setSizePolicy(sizePolicy)
        self.MPLArea.setFocusPolicy(QtCore.Qt.NoFocus)
        self.MPLArea.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.MPLArea.setObjectName(_fromUtf8("MPLArea"))
        self.PLOT_Button = QtGui.QPushButton(Plotterui)
        self.PLOT_Button.setGeometry(QtCore.QRect(20, 190, 75, 23))
        self.PLOT_Button.setObjectName(_fromUtf8("PLOT_Button"))
        self.checkTotalInt = QtGui.QCheckBox(Plotterui)
        self.checkTotalInt.setGeometry(QtCore.QRect(11, 101, 62, 17))
        self.checkTotalInt.setChecked(True)
        self.checkTotalInt.setObjectName(_fromUtf8("checkTotalInt"))
        self.checkFlammenhoehe = QtGui.QCheckBox(Plotterui)
        self.checkFlammenhoehe.setGeometry(QtCore.QRect(11, 124, 95, 17))
        self.checkFlammenhoehe.setChecked(True)
        self.checkFlammenhoehe.setObjectName(_fromUtf8("checkFlammenhoehe"))
        self.checkFlammenhoeheGauss = QtGui.QCheckBox(Plotterui)
        self.checkFlammenhoeheGauss.setGeometry(QtCore.QRect(10, 150, 131, 17))
        self.checkFlammenhoeheGauss.setChecked(True)
        self.checkFlammenhoeheGauss.setObjectName(_fromUtf8("checkFlammenhoeheGauss"))

        self.retranslateUi(Plotterui)
        QtCore.QObject.connect(self.PLOT_Button, QtCore.SIGNAL(_fromUtf8("clicked()")), Plotterui.myPlot)
        QtCore.QMetaObject.connectSlotsByName(Plotterui)
开发者ID:rnoske,项目名称:SpyDev,代码行数:32,代码来源:Plotterui.py

示例6: setupUi

    def setupUi(self, GpMainWindow):
        GpMainWindow.setObjectName(_fromUtf8("GpMainWindow"))
        GpMainWindow.resize(567, 497)
        self.Gpcentralwidget = QtGui.QWidget(GpMainWindow)
        self.Gpcentralwidget.setObjectName(_fromUtf8("Gpcentralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.Gpcentralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.Mpl = MplWidget(self.Gpcentralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Mpl.sizePolicy().hasHeightForWidth())
        self.Mpl.setSizePolicy(sizePolicy)
        self.Mpl.setObjectName(_fromUtf8("Mpl"))
        self.verticalLayout.addWidget(self.Mpl)
        self.GpgridLayout = QtGui.QGridLayout()
        self.GpgridLayout.setObjectName(_fromUtf8("GpgridLayout"))
        self.pushButton = QtGui.QPushButton(self.Gpcentralwidget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.GpgridLayout.addWidget(self.pushButton, 0, 1, 1, 1)
        self.GppushButton = QtGui.QPushButton(self.Gpcentralwidget)
        self.GppushButton.setObjectName(_fromUtf8("GppushButton"))
        self.GpgridLayout.addWidget(self.GppushButton, 0, 0, 1, 1)
        self.pushButton_2 = QtGui.QPushButton(self.Gpcentralwidget)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.GpgridLayout.addWidget(self.pushButton_2, 0, 2, 1, 1)
        self.verticalLayout.addLayout(self.GpgridLayout)
        GpMainWindow.setCentralWidget(self.Gpcentralwidget)

        self.retranslateUi(GpMainWindow)
        QtCore.QObject.connect(self.GppushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), GpMainWindow.slot1)
        QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), GpMainWindow.slot1)
        QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL(_fromUtf8("clicked()")), GpMainWindow.slot1)
        QtCore.QMetaObject.connectSlotsByName(GpMainWindow)
开发者ID:P1R,项目名称:STM32,代码行数:34,代码来源:plotter.py

示例7: setupUi

    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(800, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.MplWidget = MplWidget(self.centralwidget)
        self.MplWidget.setObjectName(_fromUtf8("MplWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.MplWidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout.addWidget(self.MplWidget)
        self.pushButton = QtGui.QPushButton(self.centralwidget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.verticalLayout.addWidget(self.pushButton)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
        self.menubar.setNativeMenuBar(False)
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionLoad_Grid = QtGui.QAction(MainWindow)
        self.actionLoad_Grid.setObjectName(_fromUtf8("actionLoad_Grid"))
        self.menuFile.addAction(self.actionLoad_Grid)
        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:followthesheep,项目名称:specgrid,代码行数:33,代码来源:mainwindow.py

示例8: setupUi

    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(580, 462)
        self.verticalLayout = QtGui.QVBoxLayout(Form)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.mpl = MplWidget(Form)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setMaximumSize(QtCore.QSize(821, 630))
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.verticalLayout.addWidget(self.mpl)
        self.horizontalLayout_22 = QtGui.QHBoxLayout()
        self.horizontalLayout_22.setSpacing(1)
        self.horizontalLayout_22.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
        self.horizontalLayout_22.setObjectName(_fromUtf8("horizontalLayout_22"))
        self.mplactionCut_by_line = QtGui.QPushButton(Form)
        self.mplactionCut_by_line.setCheckable(True)
        self.mplactionCut_by_line.setFlat(True)
        self.mplactionCut_by_line.setObjectName(_fromUtf8("mplactionCut_by_line"))
        self.horizontalLayout_22.addWidget(self.mplactionCut_by_line)
        self.mplactionCut_by_rect = QtGui.QPushButton(Form)
        self.mplactionCut_by_rect.setCheckable(True)
        self.mplactionCut_by_rect.setFlat(True)
        self.mplactionCut_by_rect.setObjectName(_fromUtf8("mplactionCut_by_rect"))
        self.horizontalLayout_22.addWidget(self.mplactionCut_by_rect)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_22.addItem(spacerItem)
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_22.addWidget(self.label_2)
        self.mplhorizontalSlider = QtGui.QSlider(Form)
        self.mplhorizontalSlider.setProperty("value", 3)
        self.mplhorizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.mplhorizontalSlider.setObjectName(_fromUtf8("mplhorizontalSlider"))
        self.horizontalLayout_22.addWidget(self.mplhorizontalSlider)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_22.addItem(spacerItem1)
        self.autoScale = QtGui.QCheckBox(Form)
        self.autoScale.setObjectName(_fromUtf8("autoScale"))
        self.horizontalLayout_22.addWidget(self.autoScale)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_22.addItem(spacerItem2)
        self.label = QtGui.QLabel(Form)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_22.addWidget(self.label)
        self.xLogScale = QtGui.QCheckBox(Form)
        self.xLogScale.setObjectName(_fromUtf8("xLogScale"))
        self.horizontalLayout_22.addWidget(self.xLogScale)
        self.yLogScale = QtGui.QCheckBox(Form)
        self.yLogScale.setObjectName(_fromUtf8("yLogScale"))
        self.horizontalLayout_22.addWidget(self.yLogScale)
        self.verticalLayout.addLayout(self.horizontalLayout_22)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
开发者ID:xkronosua,项目名称:QTR,代码行数:58,代码来源:qcut.py

示例9: Ui_MainWindow

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(800, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.plotCanvas = MplWidget(self.centralwidget)
        self.plotCanvas.setObjectName(_fromUtf8("plotCanvas"))
        self.verticalLayout.addWidget(self.plotCanvas)
        MainWindow.setCentralWidget(self.centralwidget)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Plots", None, QtGui.QApplication.UnicodeUTF8))
开发者ID:SatwantKumar,项目名称:Moogli,代码行数:18,代码来源:graphPlotter.py

示例10: setupUi

    def setupUi(self, MplMainWindow):
        MplMainWindow.setObjectName("MplMainWindow")
        MplMainWindow.resize(607, 434)
        self.mplcentralwidget = QtGui.QWidget(MplMainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mplcentralwidget.sizePolicy().hasHeightForWidth())
        self.mplcentralwidget.setSizePolicy(sizePolicy)
        self.mplcentralwidget.setObjectName("mplcentralwidget")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.mplcentralwidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.mplhorizontalLayout = QtGui.QHBoxLayout()
        self.mplhorizontalLayout.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.mplhorizontalLayout.setObjectName("mplhorizontalLayout")
        self.mpllineEdit = QtGui.QLineEdit(self.mplcentralwidget)
        self.mpllineEdit.setMinimumSize(QtCore.QSize(489, 21))
        self.mpllineEdit.setObjectName("mpllineEdit")
        self.mplhorizontalLayout.addWidget(self.mpllineEdit)
        self.mplpushButton = QtGui.QPushButton(self.mplcentralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mplpushButton.sizePolicy().hasHeightForWidth())
        self.mplpushButton.setSizePolicy(sizePolicy)
        self.mplpushButton.setMinimumSize(QtCore.QSize(91, 25))
        self.mplpushButton.setObjectName("mplpushButton")
        self.mplhorizontalLayout.addWidget(self.mplpushButton)
        self.verticalLayout_2.addLayout(self.mplhorizontalLayout)
        self.mpl = MplWidget(self.mplcentralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setObjectName("mpl")
        self.verticalLayout_2.addWidget(self.mpl)
        MplMainWindow.setCentralWidget(self.mplcentralwidget)
        self.mplmenuBar = QtGui.QMenuBar(MplMainWindow)
        self.mplmenuBar.setGeometry(QtCore.QRect(0, 0, 607, 25))
        self.mplmenuBar.setObjectName("mplmenuBar")
        self.mplmenuFile = QtGui.QMenu(self.mplmenuBar)
        self.mplmenuFile.setObjectName("mplmenuFile")
        MplMainWindow.setMenuBar(self.mplmenuBar)
        self.mplactionOpen = QtGui.QAction(MplMainWindow)
        self.mplactionOpen.setIconVisibleInMenu(False)
        self.mplactionOpen.setObjectName("mplactionOpen")
        self.mplactionQuit = QtGui.QAction(MplMainWindow)
        self.mplactionQuit.setObjectName("mplactionQuit")
        self.mplmenuFile.addAction(self.mplactionOpen)
        self.mplmenuFile.addSeparator()
        self.mplmenuFile.addAction(self.mplactionQuit)
        self.mplmenuBar.addAction(self.mplmenuFile.menuAction())

        self.retranslateUi(MplMainWindow)
        QtCore.QMetaObject.connectSlotsByName(MplMainWindow)
开发者ID:billcary,项目名称:matplotlib_for_python_developers,代码行数:56,代码来源:qtdesigner.py

示例11: setupUi

    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(800, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.plotCanvas = MplWidget(self.centralwidget)
        self.plotCanvas.setObjectName(_fromUtf8("plotCanvas"))
        self.verticalLayout.addWidget(self.plotCanvas)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:SatwantKumar,项目名称:Moogli,代码行数:14,代码来源:graphPlotter.py

示例12: setupUi

    def setupUi(self, FrameViewWidget):
        FrameViewWidget.setObjectName("FrameViewWidget")
        FrameViewWidget.resize(603, 221)
        self.confWidget1 = MplWidget(FrameViewWidget)
        self.confWidget1.setGeometry(QtCore.QRect(0, 10, 501, 51))
        self.confWidget1.setObjectName("confWidget1")
        self.confWidget3 = MplWidget(FrameViewWidget)
        self.confWidget3.setGeometry(QtCore.QRect(0, 110, 501, 51))
        self.confWidget3.setObjectName("confWidget3")
        self.le_max = QtGui.QLineEdit(FrameViewWidget)
        self.le_max.setGeometry(QtCore.QRect(530, 10, 61, 23))
        self.le_max.setObjectName("le_max")
        self.confWidget4 = MplWidget(FrameViewWidget)
        self.confWidget4.setGeometry(QtCore.QRect(0, 160, 501, 51))
        self.confWidget4.setObjectName("confWidget4")
        self.btn_set = QtGui.QPushButton(FrameViewWidget)
        self.btn_set.setGeometry(QtCore.QRect(540, 40, 41, 41))
        self.btn_set.setObjectName("btn_set")
        self.w_colourbar = MplWidget(FrameViewWidget)
        self.w_colourbar.setGeometry(QtCore.QRect(500, 10, 31, 201))
        self.w_colourbar.setObjectName("w_colourbar")
        self.le_min = QtGui.QLineEdit(FrameViewWidget)
        self.le_min.setGeometry(QtCore.QRect(530, 130, 61, 23))
        self.le_min.setObjectName("le_min")
        self.btn_clear = QtGui.QPushButton(FrameViewWidget)
        self.btn_clear.setGeometry(QtCore.QRect(540, 80, 41, 41))
        self.btn_clear.setObjectName("btn_clear")
        self.confWidget2 = MplWidget(FrameViewWidget)
        self.confWidget2.setGeometry(QtCore.QRect(0, 60, 501, 51))
        self.confWidget2.setObjectName("confWidget2")
        self.pb_open = QtGui.QPushButton(FrameViewWidget)
        self.pb_open.setGeometry(QtCore.QRect(540, 160, 41, 41))
        self.pb_open.setObjectName("pb_open")

        self.retranslateUi(FrameViewWidget)
        QtCore.QMetaObject.connectSlotsByName(FrameViewWidget)
开发者ID:groakat,项目名称:videotagger,代码行数:36,代码来源:FrameViewWidget_auto.py

示例13: setupUi

    def setupUi(self, MplMainWindow):
        MplMainWindow.setObjectName(_fromUtf8("MplMainWindow"))
        MplMainWindow.resize(646, 600)
        self.centralWidget = QtGui.QWidget(MplMainWindow)
        self.centralWidget.setObjectName(_fromUtf8("centralWidget"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.centralWidget)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(20, 20, 581, 51))
        self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mpllineEdit = QtGui.QLineEdit(self.horizontalLayoutWidget)
        self.mpllineEdit.setObjectName(_fromUtf8("mpllineEdit"))
        self.horizontalLayout.addWidget(self.mpllineEdit)
        self.mplpushButton = QtGui.QPushButton(self.horizontalLayoutWidget)
        self.mplpushButton.setObjectName(_fromUtf8("mplpushButton"))
        self.horizontalLayout.addWidget(self.mplpushButton)
        self.mpl = MplWidget(self.centralWidget)
        self.mpl.setGeometry(QtCore.QRect(20, 90, 571, 441))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setObjectName(_fromUtf8("mpl"))
        MplMainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtGui.QMenuBar(MplMainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 646, 23))
        self.menuBar.setObjectName(_fromUtf8("menuBar"))
        self.mplmenuFile = QtGui.QMenu(self.menuBar)
        self.mplmenuFile.setObjectName(_fromUtf8("mplmenuFile"))
        MplMainWindow.setMenuBar(self.menuBar)
        self.mplactionOpen = QtGui.QAction(MplMainWindow)
        self.mplactionOpen.setObjectName(_fromUtf8("mplactionOpen"))
        self.mplactionQuit = QtGui.QAction(MplMainWindow)
        self.mplactionQuit.setObjectName(_fromUtf8("mplactionQuit"))
        self.mplmenuFile.addAction(self.mplactionOpen)
        self.mplmenuFile.addSeparator()
        self.mplmenuFile.addAction(self.mplactionQuit)
        self.menuBar.addAction(self.mplmenuFile.menuAction())

        self.retranslateUi(MplMainWindow)
        QtCore.QMetaObject.connectSlotsByName(MplMainWindow)
开发者ID:tjzhaomengyi,项目名称:ExampleForMatplotOnQT4,代码行数:43,代码来源:Ui_qtdesigner.py

示例14: setupUi

    def setupUi(self, Plotterui):
        Plotterui.setObjectName(_fromUtf8("Plotterui"))
        Plotterui.setEnabled(True)
        Plotterui.resize(687, 624)
        self.MPLArea = MplWidget(Plotterui)
        self.MPLArea.setGeometry(QtCore.QRect(20, 40, 651, 561))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.MPLArea.sizePolicy().hasHeightForWidth())
        self.MPLArea.setSizePolicy(sizePolicy)
        self.MPLArea.setFocusPolicy(QtCore.Qt.NoFocus)
        self.MPLArea.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
        self.MPLArea.setObjectName(_fromUtf8("MPLArea"))
        self.Plot_comboBox = QtGui.QComboBox(Plotterui)
        self.Plot_comboBox.setGeometry(QtCore.QRect(20, 10, 141, 22))
        self.Plot_comboBox.setMaxVisibleItems(100)
        self.Plot_comboBox.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
        self.Plot_comboBox.setObjectName(_fromUtf8("Plot_comboBox"))

        self.retranslateUi(Plotterui)
        QtCore.QObject.connect(self.Plot_comboBox, QtCore.SIGNAL(_fromUtf8("activated(int)")), Plotterui.myPlot)
        QtCore.QMetaObject.connectSlotsByName(Plotterui)
开发者ID:rnoske,项目名称:Specfit,代码行数:23,代码来源:Plotterui.py

示例15: setupUi


#.........这里部分代码省略.........
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.textEdit_setup_backtest = QtGui.QTextEdit(self.frame_7)
        self.textEdit_setup_backtest.setObjectName(_fromUtf8("textEdit_setup_backtest"))
        self.verticalLayout_6.addWidget(self.textEdit_setup_backtest)
        self.horizontalLayout_5.addLayout(self.verticalLayout_6)
        self.verticalLayout_3.addWidget(self.frame_7)
        self.frame_5 = QtGui.QFrame(self.tab_backtest_setup_run)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_5.sizePolicy().hasHeightForWidth())
        self.frame_5.setSizePolicy(sizePolicy)
        self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_5.setObjectName(_fromUtf8("frame_5"))
        self.verticalLayout_3.addWidget(self.frame_5)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.tabWidget.addTab(self.tab_backtest_setup_run, _fromUtf8(""))
        self.tab_backtest_view = QtGui.QWidget()
        self.tab_backtest_view.setObjectName(_fromUtf8("tab_backtest_view"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab_backtest_view)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.frame_3 = QtGui.QFrame(self.tab_backtest_view)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_3.sizePolicy().hasHeightForWidth())
        self.frame_3.setSizePolicy(sizePolicy)
        self.frame_3.setMinimumSize(QtCore.QSize(0, 40))
        self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_3.setObjectName(_fromUtf8("frame_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.frame_3)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.horizontalSlider_bar_zoom = QtGui.QSlider(self.frame_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.horizontalSlider_bar_zoom.sizePolicy().hasHeightForWidth())
        self.horizontalSlider_bar_zoom.setSizePolicy(sizePolicy)
        self.horizontalSlider_bar_zoom.setMinimumSize(QtCore.QSize(0, 20))
        self.horizontalSlider_bar_zoom.setMaximum(30)
        self.horizontalSlider_bar_zoom.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider_bar_zoom.setInvertedAppearance(True)
        self.horizontalSlider_bar_zoom.setObjectName(_fromUtf8("horizontalSlider_bar_zoom"))
        self.horizontalLayout_3.addWidget(self.horizontalSlider_bar_zoom)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.label_view_date = QtGui.QLabel(self.frame_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_view_date.sizePolicy().hasHeightForWidth())
        self.label_view_date.setSizePolicy(sizePolicy)
        self.label_view_date.setMinimumSize(QtCore.QSize(0, 20))
        self.label_view_date.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_view_date.setObjectName(_fromUtf8("label_view_date"))
        self.horizontalLayout_3.addWidget(self.label_view_date)
        self.verticalLayout_2.addWidget(self.frame_3)
        self.mpl = MplWidget(self.tab_backtest_view)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mpl.sizePolicy().hasHeightForWidth())
        self.mpl.setSizePolicy(sizePolicy)
        self.mpl.setObjectName(_fromUtf8("mpl"))
        self.verticalLayout_2.addWidget(self.mpl)
        self.horizontalScrollBar_range_bar = QtGui.QScrollBar(self.tab_backtest_view)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.horizontalScrollBar_range_bar.sizePolicy().hasHeightForWidth())
        self.horizontalScrollBar_range_bar.setSizePolicy(sizePolicy)
        self.horizontalScrollBar_range_bar.setMinimumSize(QtCore.QSize(0, 20))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.horizontalScrollBar_range_bar.setFont(font)
        self.horizontalScrollBar_range_bar.setProperty("value", 99)
        self.horizontalScrollBar_range_bar.setSliderPosition(99)
        self.horizontalScrollBar_range_bar.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalScrollBar_range_bar.setInvertedAppearance(False)
        self.horizontalScrollBar_range_bar.setInvertedControls(False)
        self.horizontalScrollBar_range_bar.setObjectName(_fromUtf8("horizontalScrollBar_range_bar"))
        self.verticalLayout_2.addWidget(self.horizontalScrollBar_range_bar)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.tabWidget.addTab(self.tab_backtest_view, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        self.horizontalLayout.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.actionSetup_Run = QtGui.QAction(MainWindow)
        self.actionSetup_Run.setObjectName(_fromUtf8("actionSetup_Run"))
        self.actionView = QtGui.QAction(MainWindow)
        self.actionView.setObjectName(_fromUtf8("actionView"))

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
开发者ID:aouyang1,项目名称:Futures,代码行数:101,代码来源:futures_algo_dev.py


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