本文整理汇总了Python中mplwidget.MplWidget.setAutoFillBackground方法的典型用法代码示例。如果您正苦于以下问题:Python MplWidget.setAutoFillBackground方法的具体用法?Python MplWidget.setAutoFillBackground怎么用?Python MplWidget.setAutoFillBackground使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mplwidget.MplWidget
的用法示例。
在下文中一共展示了MplWidget.setAutoFillBackground方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Ui_Form
# 需要导入模块: from mplwidget import MplWidget [as 别名]
# 或者: from mplwidget.MplWidget import setAutoFillBackground [as 别名]
#.........这里部分代码省略.........
self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_9.addItem(spacerItem7)
self.label_3 = QtGui.QLabel(self.widget1)
self.label_3.setText(QtGui.QApplication.translate("Form", "Show temperature from ", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setObjectName(_fromUtf8("label_3"))
self.horizontalLayout_9.addWidget(self.label_3)
self.minTempAxis = QtGui.QDoubleSpinBox(self.widget1)
self.minTempAxis.setSuffix(QtGui.QApplication.translate("Form", " K", None, QtGui.QApplication.UnicodeUTF8))
self.minTempAxis.setDecimals(1)
self.minTempAxis.setMaximum(330.0)
self.minTempAxis.setProperty("value", 0.0)
self.minTempAxis.setObjectName(_fromUtf8("minTempAxis"))
self.horizontalLayout_9.addWidget(self.minTempAxis)
self.label_4 = QtGui.QLabel(self.widget1)
self.label_4.setText(QtGui.QApplication.translate("Form", " to ", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setObjectName(_fromUtf8("label_4"))
self.horizontalLayout_9.addWidget(self.label_4)
self.maxTempAxis = QtGui.QDoubleSpinBox(self.widget1)
self.maxTempAxis.setSuffix(QtGui.QApplication.translate("Form", " K", None, QtGui.QApplication.UnicodeUTF8))
self.maxTempAxis.setDecimals(1)
self.maxTempAxis.setMaximum(330.0)
self.maxTempAxis.setProperty("value", 330.0)
self.maxTempAxis.setObjectName(_fromUtf8("maxTempAxis"))
self.horizontalLayout_9.addWidget(self.maxTempAxis)
self.verticalLayout_3.addLayout(self.horizontalLayout_9)
self.mplWidget = MplWidget(self.widget1)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mplWidget.sizePolicy().hasHeightForWidth())
self.mplWidget.setSizePolicy(sizePolicy)
self.mplWidget.setMinimumSize(QtCore.QSize(100, 100))
self.mplWidget.setAutoFillBackground(False)
self.mplWidget.setObjectName(_fromUtf8("mplWidget"))
self.verticalLayout_3.addWidget(self.mplWidget)
self.tabWidget = QtGui.QTabWidget(self.widget1)
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tab = QtGui.QWidget()
self.tab.setObjectName(_fromUtf8("tab"))
self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.showCalCurveButton = QtGui.QCheckBox(self.tab)
self.showCalCurveButton.setText(QtGui.QApplication.translate("Form", "Show on graph", None, QtGui.QApplication.UnicodeUTF8))
self.showCalCurveButton.setChecked(True)
self.showCalCurveButton.setObjectName(_fromUtf8("showCalCurveButton"))
self.verticalLayout_4.addWidget(self.showCalCurveButton)
self.calTreeWidget = SeparableTreeWidget(self.tab)
self.calTreeWidget.setDragDropMode(QtGui.QAbstractItemView.InternalMove)
self.calTreeWidget.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
self.calTreeWidget.setAutoExpandDelay(-1)
self.calTreeWidget.setObjectName(_fromUtf8("calTreeWidget"))
self.calTreeWidget.headerItem().setText(0, QtGui.QApplication.translate("Form", "Temperature (K)", None, QtGui.QApplication.UnicodeUTF8))
self.calTreeWidget.headerItem().setText(1, QtGui.QApplication.translate("Form", "placeholder", None, QtGui.QApplication.UnicodeUTF8))
self.verticalLayout_4.addWidget(self.calTreeWidget)
self.horizontalLayout_11 = QtGui.QHBoxLayout()
self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11"))
self.calAddSeparatorButton = QtGui.QPushButton(self.tab)
self.calAddSeparatorButton.setText(QtGui.QApplication.translate("Form", "Add separator", None, QtGui.QApplication.UnicodeUTF8))
self.calAddSeparatorButton.setObjectName(_fromUtf8("calAddSeparatorButton"))
self.horizontalLayout_11.addWidget(self.calAddSeparatorButton)
self.calDelete = QtGui.QPushButton(self.tab)
self.calDelete.setText(QtGui.QApplication.translate("Form", "Delete", None, QtGui.QApplication.UnicodeUTF8))
self.calDelete.setObjectName(_fromUtf8("calDelete"))
self.horizontalLayout_11.addWidget(self.calDelete)
spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)