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


Python MatplotlibWidget.setAutoFillBackground方法代码示例

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


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

示例1: UIMainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setAutoFillBackground [as 别名]
class UIMainWindow(object):
    def __init__(self, main_window):
        self.setup_vars()
        print("Setting up GUI")
        main_window.setObjectName(_fromUtf8("main_window"))
        main_window.resize(850, 858)
        self.centralwidget = QtGui.QWidget(main_window)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.grid_layout = QtGui.QGridLayout(self.centralwidget)
        self.grid_layout.setObjectName(_fromUtf8("grid_layout"))
        spacer_item = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        self.grid_layout.addItem(spacer_item, 4, 1, 1, 1)
        spacer_item1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        self.grid_layout.addItem(spacer_item1, 4, 3, 1, 3)
        self.labelTime = QtGui.QLabel(self.centralwidget)
        self.labelTime.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.labelTime.setWordWrap(True)
        self.labelTime.setObjectName(_fromUtf8("labelTime"))
        self.grid_layout.addWidget(self.labelTime, 1, 0, 1, 6)
        self.check_box_date_end = QtGui.QCheckBox(self.centralwidget)
        self.check_box_date_end.setChecked(False)
        self.check_box_date_end.setObjectName(_fromUtf8("check_box_date_end"))
        self.grid_layout.addWidget(self.check_box_date_end, 15, 2, 1, 1)
        self.check_box_day_start = QtGui.QCheckBox(self.centralwidget)
        self.check_box_day_start.setChecked(False)
        self.check_box_day_start.setObjectName(_fromUtf8("check_box_day_start"))
        self.grid_layout.addWidget(self.check_box_day_start, 5, 0, 1, 1)
        spacer_item2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        self.grid_layout.addItem(spacer_item2, 7, 0, 1, 1)
        self.labelDate = QtGui.QLabel(self.centralwidget)
        self.labelDate.setWordWrap(True)
        self.labelDate.setObjectName(_fromUtf8("labelDate"))
        self.grid_layout.addWidget(self.labelDate, 8, 0, 1, 6)
        self.label_unknown_times = QtGui.QLabel(self.centralwidget)
        self.label_unknown_times.setObjectName(_fromUtf8("label_unknown_times"))
        self.grid_layout.addWidget(self.label_unknown_times, 6, 1, 1, 2)
        self.time_edit_primary = QtGui.QTimeEdit(self.centralwidget)
        self.time_edit_primary.setEnabled(True)
        self.time_edit_primary.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.time_edit_primary.setAutoFillBackground(False)
        self.time_edit_primary.setWrapping(True)
        self.time_edit_primary.setButtonSymbols(QtGui.QAbstractSpinBox.UpDownArrows)
        self.time_edit_primary.setCalendarPopup(False)
        self.time_edit_primary.setObjectName(_fromUtf8("time_edit_primary"))
        self.grid_layout.addWidget(self.time_edit_primary, 4, 0, 1, 1)
        self.label_primary_time = QtGui.QLabel(self.centralwidget)
        self.label_primary_time.setObjectName(_fromUtf8("label_primary_time"))
        self.grid_layout.addWidget(self.label_primary_time, 3, 0, 1, 1)
        self.label_secondary_time = QtGui.QLabel(self.centralwidget)
        self.label_secondary_time.setObjectName(_fromUtf8("label_secondary_time"))
        self.grid_layout.addWidget(self.label_secondary_time, 3, 2, 1, 1)
        spacer_item3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        self.grid_layout.addItem(spacer_item3, 4, 6, 1, 1)
        self.date_primary = QtGui.QDateEdit(self.centralwidget)
        self.date_primary.setWrapping(True)
        # Setting the min/max times at start
        self.date_primary.setDateTime(
            QtCore.QDateTime(QtCore.QDate(self.earliest_date.year, self.earliest_date.month, self.earliest_date.day),
                             QtCore.QTime(0, 0, 0)))
        self.date_primary.setMaximumDateTime(
            QtCore.QDateTime(QtCore.QDate(self.latest_date.year, self.latest_date.month, self.latest_date.day),
                             QtCore.QTime(23, 59, 59)))
        self.date_primary.setMinimumDateTime(
            QtCore.QDateTime(QtCore.QDate(self.earliest_date.year, self.earliest_date.month, self.earliest_date.day),
                             QtCore.QTime(0, 0, 0)))
        self.date_primary.setCalendarPopup(False)
        self.date_primary.setObjectName(_fromUtf8("date_primary"))
        self.grid_layout.addWidget(self.date_primary, 14, 0, 1, 1)
        self.check_box_day_end = QtGui.QCheckBox(self.centralwidget)
        self.check_box_day_end.setChecked(False)
        self.check_box_day_end.setObjectName(_fromUtf8("check_box_day_end"))
        self.grid_layout.addWidget(self.check_box_day_end, 5, 2, 1, 1)
        self.label_secondary_date = QtGui.QLabel(self.centralwidget)
        self.label_secondary_date.setObjectName(_fromUtf8("label_secondary_date"))
        self.grid_layout.addWidget(self.label_secondary_date, 12, 2, 1, 1)
        self.time_edit_secondary = QtGui.QTimeEdit(self.centralwidget)
        self.time_edit_secondary.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.time_edit_secondary.setAutoFillBackground(False)
        self.time_edit_secondary.setWrapping(True)
        self.time_edit_secondary.setDateTime(QtCore.QDateTime(QtCore.QDate(2000, 1, 1), QtCore.QTime(23, 59, 0)))
        self.time_edit_secondary.setCalendarPopup(False)
        self.time_edit_secondary.setObjectName(_fromUtf8("time_edit_secondary"))
        self.grid_layout.addWidget(self.time_edit_secondary, 4, 2, 1, 1)
        self.check_box_date_start = QtGui.QCheckBox(self.centralwidget)
        self.check_box_date_start.setChecked(False)
        self.check_box_date_start.setObjectName(_fromUtf8("check_box_date_start"))
        self.grid_layout.addWidget(self.check_box_date_start, 15, 0, 1, 1)
        self.matplotlib_map = MatplotlibWidget(self.centralwidget)
        self.matplotlib_map.setObjectName(_fromUtf8("matplotlib_map"))
        self.grid_layout.addWidget(self.matplotlib_map, 16, 0, 1, 7)
        self.label_primary_date = QtGui.QLabel(self.centralwidget)
        self.label_primary_date.setObjectName(_fromUtf8("label_primary_date"))
        self.grid_layout.addWidget(self.label_primary_date, 12, 0, 1, 1)
        self.date_secondary = QtGui.QDateEdit(self.centralwidget)
        self.date_secondary.setWrapping(True)
        # Setting the min/max times at start
        self.date_secondary.setDate(QtCore.QDate(self.latest_date.year, self.latest_date.month, self.latest_date.day))
        self.date_secondary.setMaximumDateTime(
            QtCore.QDateTime(QtCore.QDate(self.latest_date.year, self.latest_date.month, self.latest_date.day),
                             QtCore.QTime(23, 59, 59)))
#.........这里部分代码省略.........
开发者ID:PeterChernoff,项目名称:MyProjects,代码行数:103,代码来源:main.py

示例2: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setAutoFillBackground [as 别名]
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1024, 768)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.impulseMatplotlibwidget = MatplotlibWidget(self.centralwidget)
        self.impulseMatplotlibwidget.setGeometry(QtCore.QRect(10, 180, 491, 251))
        self.impulseMatplotlibwidget.setAutoFillBackground(False)
        self.impulseMatplotlibwidget.setStyleSheet(_fromUtf8("MatplotlibWidget{\n"
"border-width: 0px;\n"
"}\n"
""))
        self.impulseMatplotlibwidget.setObjectName(_fromUtf8("impulseMatplotlibwidget"))
        self.freqResponseMatplotlibwidget = MatplotlibWidget(self.centralwidget)
        self.freqResponseMatplotlibwidget.setGeometry(QtCore.QRect(10, 430, 1001, 301))
        font = QtGui.QFont()
        font.setPointSize(7)
        self.freqResponseMatplotlibwidget.setFont(font)
        self.freqResponseMatplotlibwidget.setStyleSheet(_fromUtf8("MatplotlibWidget{\n"
"border-width: 0px;\n"
"}"))
        self.freqResponseMatplotlibwidget.setObjectName(_fromUtf8("freqResponseMatplotlibwidget"))
        self.bandStartHorizontalSlider = QtGui.QSlider(self.centralwidget)
        self.bandStartHorizontalSlider.setGeometry(QtCore.QRect(50, 50, 161, 16))
        self.bandStartHorizontalSlider.setMaximum(50)
        self.bandStartHorizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.bandStartHorizontalSlider.setObjectName(_fromUtf8("bandStartHorizontalSlider"))
        self.bandEndHorizontalSlider = QtGui.QSlider(self.centralwidget)
        self.bandEndHorizontalSlider.setGeometry(QtCore.QRect(50, 100, 161, 16))
        self.bandEndHorizontalSlider.setMaximum(50)
        self.bandEndHorizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.bandEndHorizontalSlider.setObjectName(_fromUtf8("bandEndHorizontalSlider"))
        self.bandLevelVerticalSlider = QtGui.QSlider(self.centralwidget)
        self.bandLevelVerticalSlider.setGeometry(QtCore.QRect(230, 50, 20, 71))
        self.bandLevelVerticalSlider.setMaximum(100)
        self.bandLevelVerticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.bandLevelVerticalSlider.setObjectName(_fromUtf8("bandLevelVerticalSlider"))
        self.bandStart = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandStart.setGeometry(QtCore.QRect(50, 130, 62, 22))
        self.bandStart.setDecimals(4)
        self.bandStart.setMaximum(0.5)
        self.bandStart.setSingleStep(0.01)
        self.bandStart.setObjectName(_fromUtf8("bandStart"))
        self.bandEnd = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandEnd.setGeometry(QtCore.QRect(120, 130, 62, 22))
        self.bandEnd.setDecimals(4)
        self.bandEnd.setMaximum(0.5)
        self.bandEnd.setSingleStep(0.01)
        self.bandEnd.setObjectName(_fromUtf8("bandEnd"))
        self.bandLevel = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandLevel.setGeometry(QtCore.QRect(190, 130, 62, 22))
        self.bandLevel.setDecimals(4)
        self.bandLevel.setMaximum(1.0)
        self.bandLevel.setSingleStep(0.01)
        self.bandLevel.setObjectName(_fromUtf8("bandLevel"))
        self.bandEnd_2 = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandEnd_2.setGeometry(QtCore.QRect(360, 130, 62, 22))
        self.bandEnd_2.setDecimals(4)
        self.bandEnd_2.setMaximum(0.5)
        self.bandEnd_2.setSingleStep(0.01)
        self.bandEnd_2.setObjectName(_fromUtf8("bandEnd_2"))
        self.bandEndHorizontalSlider_2 = QtGui.QSlider(self.centralwidget)
        self.bandEndHorizontalSlider_2.setGeometry(QtCore.QRect(290, 100, 161, 16))
        self.bandEndHorizontalSlider_2.setMaximum(50)
        self.bandEndHorizontalSlider_2.setOrientation(QtCore.Qt.Horizontal)
        self.bandEndHorizontalSlider_2.setObjectName(_fromUtf8("bandEndHorizontalSlider_2"))
        self.bandLevelVerticalSlider_2 = QtGui.QSlider(self.centralwidget)
        self.bandLevelVerticalSlider_2.setGeometry(QtCore.QRect(470, 50, 20, 71))
        self.bandLevelVerticalSlider_2.setMaximum(100)
        self.bandLevelVerticalSlider_2.setOrientation(QtCore.Qt.Vertical)
        self.bandLevelVerticalSlider_2.setObjectName(_fromUtf8("bandLevelVerticalSlider_2"))
        self.bandLevel_2 = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandLevel_2.setGeometry(QtCore.QRect(430, 130, 62, 22))
        self.bandLevel_2.setDecimals(4)
        self.bandLevel_2.setMaximum(1.0)
        self.bandLevel_2.setSingleStep(0.01)
        self.bandLevel_2.setObjectName(_fromUtf8("bandLevel_2"))
        self.bandStart_2 = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandStart_2.setGeometry(QtCore.QRect(290, 130, 62, 22))
        self.bandStart_2.setDecimals(4)
        self.bandStart_2.setMaximum(0.5)
        self.bandStart_2.setSingleStep(0.01)
        self.bandStart_2.setObjectName(_fromUtf8("bandStart_2"))
        self.bandStartHorizontalSlider_2 = QtGui.QSlider(self.centralwidget)
        self.bandStartHorizontalSlider_2.setGeometry(QtCore.QRect(290, 50, 161, 16))
        self.bandStartHorizontalSlider_2.setMaximum(50)
        self.bandStartHorizontalSlider_2.setOrientation(QtCore.Qt.Horizontal)
        self.bandStartHorizontalSlider_2.setObjectName(_fromUtf8("bandStartHorizontalSlider_2"))
        self.bandEnd_3 = QtGui.QDoubleSpinBox(self.centralwidget)
        self.bandEnd_3.setGeometry(QtCore.QRect(600, 130, 62, 22))
        self.bandEnd_3.setDecimals(4)
        self.bandEnd_3.setMaximum(0.5)
        self.bandEnd_3.setSingleStep(0.01)
        self.bandEnd_3.setObjectName(_fromUtf8("bandEnd_3"))
        self.bandEndHorizontalSlider_3 = QtGui.QSlider(self.centralwidget)
        self.bandEndHorizontalSlider_3.setGeometry(QtCore.QRect(530, 100, 161, 16))
        self.bandEndHorizontalSlider_3.setMaximum(50)
        self.bandEndHorizontalSlider_3.setOrientation(QtCore.Qt.Horizontal)
        self.bandEndHorizontalSlider_3.setObjectName(_fromUtf8("bandEndHorizontalSlider_3"))
#.........这里部分代码省略.........
开发者ID:jniemann66,项目名称:FIRCalculator,代码行数:103,代码来源:FIRDesigner.py

示例3: Ui_MainWindow

# 需要导入模块: from matplotlibwidget import MatplotlibWidget [as 别名]
# 或者: from matplotlibwidget.MatplotlibWidget import setAutoFillBackground [as 别名]

#.........这里部分代码省略.........
        self.label_15 = QtGui.QLabel(self.groupBox)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.gridLayout_2.addWidget(self.label_15, 3, 2, 1, 1)
        self.label_14 = QtGui.QLabel(self.groupBox)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.gridLayout_2.addWidget(self.label_14, 0, 2, 1, 1)
        self.label_17 = QtGui.QLabel(self.groupBox)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.gridLayout_2.addWidget(self.label_17, 5, 2, 1, 1)
        self.label_19 = QtGui.QLabel(self.groupBox)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.gridLayout_2.addWidget(self.label_19, 7, 2, 1, 1)
        self.label_20 = QtGui.QLabel(self.groupBox)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.gridLayout_2.addWidget(self.label_20, 8, 2, 1, 1)
        self.label_21 = QtGui.QLabel(self.groupBox)
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.gridLayout_2.addWidget(self.label_21, 9, 2, 1, 1)
        self.label_22 = QtGui.QLabel(self.groupBox)
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.gridLayout_2.addWidget(self.label_22, 10, 2, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_2, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.mplwidget = MatplotlibWidget(self.groupBox_2)
        self.mplwidget.setAutoFillBackground(False)
        self.mplwidget.setObjectName(_fromUtf8("mplwidget"))
        self.gridLayout_4.addWidget(self.mplwidget, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.groupBox_2, 0, 1, 1, 1)
        self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_3.setMinimumSize(QtCore.QSize(100, 0))
        self.groupBox_3.setMaximumSize(QtCore.QSize(100, 16777215))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.gridLayout_6 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.button_import = QtGui.QPushButton(self.groupBox_3)
        self.button_import.setObjectName(_fromUtf8("button_import"))
        self.gridLayout_5.addWidget(self.button_import, 6, 0, 1, 1)
        self.button_export = QtGui.QPushButton(self.groupBox_3)
        self.button_export.setObjectName(_fromUtf8("button_export"))
        self.gridLayout_5.addWidget(self.button_export, 7, 0, 1, 1)
        self.button_solve = QtGui.QPushButton(self.groupBox_3)
        self.button_solve.setObjectName(_fromUtf8("button_solve"))
        self.gridLayout_5.addWidget(self.button_solve, 8, 0, 1, 1)
        self.button_pause = QtGui.QPushButton(self.groupBox_3)
        self.button_pause.setObjectName(_fromUtf8("button_pause"))
        self.gridLayout_5.addWidget(self.button_pause, 9, 0, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_5.addItem(spacerItem1, 4, 0, 1, 1)
        self.comboBox = QtGui.QComboBox(self.groupBox_3)
        self.comboBox.setObjectName(_fromUtf8("comboBox"))
        self.comboBox.addItem(_fromUtf8(""))
        self.comboBox.addItem(_fromUtf8(""))
        self.comboBox.addItem(_fromUtf8(""))
        self.comboBox.addItem(_fromUtf8(""))
        self.comboBox.addItem(_fromUtf8(""))
开发者ID:PolymerGuy,项目名称:Calibrator,代码行数:70,代码来源:gui_main.py


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