Layer

This is a Python binding to the C++ class Mantidplot::Layer.

class mantidplot.Layer
Area = 4
Bottom = 2
Box = 13
ColorMap = 16
ColorMapContour = 18
Contour = 19
DrawChildren = 2
DrawWindowBackground = 1
ErrorBars = 12
Function = 20
GrayScale = 17
Histogram = 9
HorizontalBars = 10
HorizontalSteps = 8
IgnoreMask = 4
ImagePlot = 21
In = 3
InOut = 2
Left = 0
Line = 0
LineSymbols = 2
Linear = 0
Log10 = 1
NoTicks = 0
Out = 1
class PaintDeviceMetric
__init__

x.__init__(...) initializes x; see help(type(x)) for signature

bit_length() → int

Number of bits necessary to represent self in binary. >>> bin(37) ‘0b100101’ >>> (37).bit_length() 6

conjugate()

Returns self, the complex conjugate of any int.

denominator

the denominator of a rational number in lowest terms

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

real

the real part of a complex number

Layer.PdmDepth = 6
Layer.PdmDpiX = 7
Layer.PdmDpiY = 8
Layer.PdmHeight = 2
Layer.PdmHeightMM = 4
Layer.PdmNumColors = 5
Layer.PdmPhysicalDpiX = 9
Layer.PdmPhysicalDpiY = 10
Layer.PdmWidth = 1
Layer.PdmWidthMM = 3
Layer.Pie = 5
class Layer.RenderFlag
__init__

x.__init__(...) initializes x; see help(type(x)) for signature

bit_length() → int

Number of bits necessary to represent self in binary. >>> bin(37) ‘0b100101’ >>> (37).bit_length() 6

conjugate()

Returns self, the complex conjugate of any int.

denominator

the denominator of a rational number in lowest terms

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

real

the real part of a complex number

class Layer.RenderFlags

QWidget.RenderFlags(QWidget.RenderFlags) QWidget.RenderFlags(int) QWidget.RenderFlags()

__init__

x.__init__(...) initializes x; see help(type(x)) for signature

Layer.Right = 1
Layer.Scatter = 1
Layer.Spline = 7
class Layer.TicksStyle
__init__

x.__init__(...) initializes x; see help(type(x)) for signature

bit_length() → int

Number of bits necessary to represent self in binary. >>> bin(37) ‘0b100101’ >>> (37).bit_length() 6

conjugate()

Returns self, the complex conjugate of any int.

denominator

the denominator of a rational number in lowest terms

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

real

the real part of a complex number

Layer.Top = 3
Layer.User = 22
Layer.VectXYAM = 14
Layer.VectXYXY = 11
Layer.VerticalBars = 3
Layer.VerticalDropLines = 6
Layer.VerticalSteps = 15
Layer.__init__

x.__init__(...) initializes x; see help(type(x)) for signature

Layer.acceptDrops(self) → bool
Layer.accessibleDescription(self) → QString
Layer.accessibleName(self) → QString
Layer.actionEvent(self, QActionEvent)
Layer.actions(self) → object
Layer.activateWindow(self)
Layer.addAction(self, QAction)
Layer.addActions(self, object)
Layer.addArrow(self, ArrowMarker)
Layer.addCurve(self, Table, QString, int = 0, float = 1, int = 3, int = 0, int = -1) → bool
Layer.addCurves(self, Table, Tuple, int = 0, float = 1, int = 3, int = 0, int = -1) → bool
Layer.addErrorBars(self, QString, Table, QString, int = 1, float = 1, int = 8, QColor = QColor(Qt.black), bool = False, bool = True, bool = True)
Layer.addFunction(self, QString, float, float, int = 100)
Layer.addHistogram(self, Matrix)
Layer.addImage(self, ImageMarker)

addImage(self, QString)

Layer.addParametricFunction(self, QString, QString, float, float, int = 100, QString = "m")
Layer.addPolarFunction(self, QString, QString, float, float, int = 100, QString = "t")
Layer.addTimeStamp(self)
Layer.adjustSize(self)
Layer.autoFillBackground(self) → bool
Layer.backgroundRole(self) → QPalette.ColorRole
Layer.baseSize(self) → QSize
Layer.blockSignals(self, bool) → bool
Layer.changeEvent(self, QEvent)
Layer.childAt(self, QPoint) → QWidget

childAt(self, int, int) -> QWidget

Layer.childEvent(self, QChildEvent)
Layer.children(self) → object
Layer.childrenRect(self) → QRect
Layer.childrenRegion(self) → QRegion
Layer.clearFocus(self)
Layer.clearMask(self)
Layer.close(self) → bool
Layer.closeEvent(self, QCloseEvent)
Layer.colorCount(self) → int
Layer.connect(QObject, QT_SIGNAL, QObject, QT_SLOT_QT_SIGNAL, Qt.ConnectionType = Qt.AutoConnection) → object

connect(QObject, QT_SIGNAL, Callable[..., None], Qt.ConnectionType = Qt.AutoConnection) -> object connect(self, QObject, QT_SIGNAL, QT_SLOT_QT_SIGNAL, Qt.ConnectionType = Qt.AutoConnection) -> object

Layer.connectNotify(self, QT_SIGNAL)
Layer.contentsMargins(self) → QMargins
Layer.contentsRect(self) → QRect
Layer.contextMenuEvent(self, QContextMenuEvent)
Layer.contextMenuPolicy(self) → Qt.ContextMenuPolicy
Layer.create(self, window: int = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
Layer.cursor(self) → QCursor
Layer.curve(self, int) → QwtPlotCurve
Layer.curveTitle(self, int) → QString
Layer.customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

Layer.customEvent(self, QEvent)
Layer.deleteLater(self)
Layer.depth(self) → int
Layer.destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)
Layer.destroyed

destroyed(self, QObject = None) [signal] destroyed(self) [signal]

Layer.devType(self) → int
Layer.disconnect(QObject, QT_SIGNAL, QObject, QT_SLOT_QT_SIGNAL) → object

disconnect(QObject, QT_SIGNAL, Callable[..., None]) -> object

Layer.disconnectNotify(self, QT_SIGNAL)
Layer.dragEnterEvent(self, QDragEnterEvent)
Layer.dragLeaveEvent(self, QDragLeaveEvent)
Layer.dragMoveEvent(self, QDragMoveEvent)
Layer.drawAxesBackbones(self, bool)
Layer.dropEvent(self, QDropEvent)
Layer.dumpObjectInfo(self)
Layer.dumpObjectTree(self)
Layer.dynamicPropertyNames(self) → object
Layer.effectiveWinId(self) → int
Layer.emit(self, QT_SIGNAL, *)
Layer.enableAutoscaling(self, bool = True)
Layer.enableAxis(self, int, bool = True)
Layer.enableAxisLabels(self, int, bool)
Layer.enableWaterfallFill(self, bool = True)
Layer.enabledChange(self, bool)
Layer.ensurePolished(self)
Layer.enterEvent(self, QEvent)
Layer.errorBarSettings(self, int, int = 0) → ErrorBarSettings
Layer.event(self, QEvent) → bool
Layer.eventFilter(self, QObject, QEvent) → bool
Layer.export(self, QString)
Layer.exportImage(self, QString, int = 100, bool = False)
Layer.exportVector(self, QString, int = 0, bool = True, bool = True, QPrinter.PageSize = QPrinter.Custom)
Layer.find(int) → QWidget
Layer.findChild(self, type, name: QString = QString()) → object

findChild(self, Tuple, name: QString = QString()) -> object

Layer.findChildren(self, type, name: QString = QString()) → List

findChildren(self, Tuple, name: QString = QString()) -> List findChildren(self, type, QRegExp) -> List findChildren(self, Tuple, QRegExp) -> List

Layer.focusInEvent(self, QFocusEvent)
Layer.focusNextChild(self) → bool
Layer.focusNextPrevChild(self, bool) → bool
Layer.focusOutEvent(self, QFocusEvent)
Layer.focusPolicy(self) → Qt.FocusPolicy
Layer.focusPreviousChild(self) → bool
Layer.focusProxy(self) → QWidget
Layer.focusWidget(self) → QWidget
Layer.font(self) → QFont
Layer.fontChange(self, QFont)
Layer.fontInfo(self) → QFontInfo
Layer.fontMetrics(self) → QFontMetrics
Layer.foregroundRole(self) → QPalette.ColorRole
Layer.frameGeometry(self) → QRect
Layer.frameSize(self) → QSize
Layer.geometry(self) → QRect
Layer.getContentsMargins(self) → Tuple[int, int, int, int]
Layer.grabGesture(self, Qt.GestureType, flags: Qt.GestureFlags = Qt.GestureFlags(0))
Layer.grabKeyboard(self)
Layer.grabMouse(self)

grabMouse(self, QCursor)

Layer.grabShortcut(self, QKeySequence, context: Qt.ShortcutContext = Qt.WindowShortcut) → int
Layer.graphicsEffect(self) → QGraphicsEffect
Layer.graphicsProxyWidget(self) → QGraphicsProxyWidget
Layer.grid(self) → Grid
Layer.handle(self) → int
Layer.hasFocus(self) → bool
Layer.hasMouseTracking(self) → bool
Layer.height(self) → int
Layer.heightForWidth(self, int) → int
Layer.heightMM(self) → int
Layer.hide(self)
Layer.hideEvent(self, QHideEvent)
Layer.inherits(self, str) → bool
Layer.inputContext(self) → QInputContext
Layer.inputMethodEvent(self, QInputMethodEvent)
Layer.inputMethodHints(self) → Qt.InputMethodHints
Layer.inputMethodQuery(self, Qt.InputMethodQuery) → QVariant
Layer.insertAction(self, QAction, QAction)
Layer.insertActions(self, QAction, object)
Layer.insertCurve(self, Table, QString, int = 1, int = 0, int = -1) → bool

insertCurve(self, Table, QString, QString, int = 1, int = 0, int = -1) -> bool insertCurve(self, QString, int, bool = False, GraphOptions.CurveType = GraphOptions.Unspecified, bool = False) -> bool insertCurve(self, Layer, int)

Layer.installEventFilter(self, QObject)
Layer.isActiveWindow(self) → bool
Layer.isAncestorOf(self, QWidget) → bool
Layer.isEnabled(self) → bool
Layer.isEnabledTo(self, QWidget) → bool
Layer.isEnabledToTLW(self) → bool
Layer.isFullScreen(self) → bool
Layer.isHidden(self) → bool
Layer.isLeftToRight(self) → bool
Layer.isMaximized(self) → bool
Layer.isMinimized(self) → bool
Layer.isModal(self) → bool
Layer.isPiePlot(self) → bool
Layer.isRightToLeft(self) → bool
Layer.isTopLevel(self) → bool
Layer.isVisible(self) → bool
Layer.isVisibleTo(self, QWidget) → bool
Layer.isWidgetType(self) → bool
Layer.isWindow(self) → bool
Layer.isWindowModified(self) → bool
Layer.keyPressEvent(self, QKeyEvent)
Layer.keyReleaseEvent(self, QKeyEvent)
Layer.keyboardGrabber() → QWidget
Layer.killTimer(self, int)
Layer.languageChange(self)
Layer.layout(self) → QLayout
Layer.layoutDirection(self) → Qt.LayoutDirection
Layer.leaveEvent(self, QEvent)
Layer.legend(self) → LegendWidget
Layer.linColor(self)
Layer.linearAxes(self)
Layer.locale(self) → QLocale
Layer.logColor(self)
Layer.logLogAxes(self)
Layer.logXLinY(self)
Layer.logYlinX(self)
Layer.logicalDpiX(self) → int
Layer.logicalDpiY(self) → int
Layer.lower(self)
Layer.mapFrom(self, QWidget, QPoint) → QPoint
Layer.mapFromGlobal(self, QPoint) → QPoint
Layer.mapFromParent(self, QPoint) → QPoint
Layer.mapTo(self, QWidget, QPoint) → QPoint
Layer.mapToGlobal(self, QPoint) → QPoint
Layer.mapToParent(self, QPoint) → QPoint
Layer.mask(self) → QRegion
Layer.maximumHeight(self) → int
Layer.maximumSize(self) → QSize
Layer.maximumWidth(self) → int
Layer.metaObject(self) → QMetaObject
Layer.metric(self, QPaintDevice.PaintDeviceMetric) → int
Layer.minimumHeight(self) → int
Layer.minimumSize(self) → QSize
Layer.minimumSizeHint(self) → QSize
Layer.minimumWidth(self) → int
Layer.mouseDoubleClickEvent(self, QMouseEvent)
Layer.mouseGrabber() → QWidget
Layer.mouseMoveEvent(self, QMouseEvent)
Layer.mousePressEvent(self, QMouseEvent)
Layer.mouseReleaseEvent(self, QMouseEvent)
Layer.move(self, QPoint)

move(self, int, int)

Layer.moveEvent(self, QMoveEvent)
Layer.moveToThread(self, QThread)
Layer.nativeParentWidget(self) → QWidget
Layer.newLegend(self, QString = QString()) → LegendWidget
Layer.nextInFocusChain(self) → QWidget
Layer.normalGeometry(self) → QRect
Layer.numColors(self) → int
Layer.numCurves(self) → int
Layer.objectName(self) → QString
Layer.overrideWindowFlags(self, Qt.WindowFlags)
Layer.overrideWindowState(self, Qt.WindowStates)
Layer.paintEngine(self) → QPaintEngine
Layer.paintEvent(self, QPaintEvent)
Layer.paintingActive(self) → bool
Layer.palette(self) → QPalette
Layer.paletteChange(self, QPalette)
Layer.parent(self) → QObject
Layer.parentWidget(self) → QWidget
Layer.physicalDpiX(self) → int
Layer.physicalDpiY(self) → int
Layer.pieLegend(self) → object
Layer.pos(self) → QPoint
Layer.previousInFocusChain(self) → QWidget
Layer.property(self, str) → QVariant
Layer.pyqtConfigure(...)

Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.

Layer.raise_(self)
Layer.receivers(self, QT_SIGNAL) → int
Layer.rect(self) → QRect
Layer.releaseKeyboard(self)
Layer.releaseMouse(self)
Layer.releaseShortcut(self, int)
Layer.removeAction(self, QAction)
Layer.removeCurve(self, int)

removeCurve(self, QString)

Layer.removeEventFilter(self, QObject)
Layer.removeLegend(self)
Layer.removeTitle(self)
Layer.render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags = QWidget.DrawWindowBackground|QWidget.DrawChildren)

render(self, QPainter, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags = QWidget.DrawWindowBackground|QWidget.DrawChildren)

Layer.repaint(self)

repaint(self, int, int, int, int) repaint(self, QRect) repaint(self, QRegion)

Layer.replot(self)
Layer.resetInputContext(self)
Layer.resize(self, QSize)

resize(self, int, int)

Layer.resizeEvent(self, QResizeEvent)
Layer.restoreGeometry(self, QByteArray) → bool
Layer.saveGeometry(self) → QByteArray
Layer.scroll(self, int, int)

scroll(self, int, int, QRect)

Layer.sender(self) → QObject
Layer.senderSignalIndex(self) → int
Layer.setAcceptDrops(self, bool)
Layer.setAccessibleDescription(self, QString)
Layer.setAccessibleName(self, QString)
Layer.setAntialiasing(self, bool = True, bool = True)
Layer.setAttribute(self, Qt.WidgetAttribute, on: bool = True)
Layer.setAutoFillBackground(self, bool)
Layer.setAutoScale(self)
Layer.setAutoscaleFonts(self, bool = True)
Layer.setAxesLinewidth(self, int)
Layer.setAxisColor(self, int, QColor)
Layer.setAxisFont(self, int, QFont)
Layer.setAxisLabelRotation(self, int, int)
Layer.setAxisLabelsColor(self, int, QColor)
Layer.setAxisNumericFormat(self, int, int, int = 6, QString = QString())
Layer.setAxisScale(self, int, float, float, int = -1, float = 0, int = 5, int = 5)
Layer.setAxisTicksLength(self, int, int, int, int, int)
Layer.setAxisTitle(self, int, QString)
Layer.setAxisTitleAlignment(self, int, int)
Layer.setAxisTitleColor(self, int, QColor)
Layer.setAxisTitleFont(self, int, QFont)
Layer.setBackgroundColor(self, QColor)
Layer.setBackgroundRole(self, QPalette.ColorRole)
Layer.setBaseSize(self, int, int)

setBaseSize(self, QSize)

Layer.setCanvasColor(self, QColor)
Layer.setCanvasFrame(self, int = 1, QColor = QColor(Qt.black))
Layer.setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

Layer.setContextMenuPolicy(self, Qt.ContextMenuPolicy)
Layer.setCursor(self, QCursor)
Layer.setCurveAxes(self, int, int, int)
Layer.setCurveBrush(self, int, QBrush)
Layer.setCurveLineColor(self, int, int)

setCurveLineColor(self, int, QColor)

Layer.setCurveLineStyle(self, int, Qt.PenStyle)
Layer.setCurveLineWidth(self, int, float)
Layer.setCurvePen(self, int, QPen)
Layer.setCurveSkipSymbolsCount(self, int, int)
Layer.setCurveSymbol(self, int, PlotSymbol)
Layer.setCurveTitle(self, int, QString)
Layer.setDisabled(self, bool)
Layer.setEnabled(self, bool)
Layer.setFixedHeight(self, int)
Layer.setFixedSize(self, QSize)

setFixedSize(self, int, int)

Layer.setFixedWidth(self, int)
Layer.setFocus(self)

setFocus(self, Qt.FocusReason)

Layer.setFocusPolicy(self, Qt.FocusPolicy)
Layer.setFocusProxy(self, QWidget)
Layer.setFont(self, QFont)
Layer.setForegroundRole(self, QPalette.ColorRole)
Layer.setFrame(self, int = 1, QColor = QColor(Qt.black))
Layer.setGeometry(self, QRect)

setGeometry(self, int, int, int, int)

Layer.setGraphicsEffect(self, QGraphicsEffect)
Layer.setGrayScale(self)
Layer.setHidden(self, bool)
Layer.setIgnoreResize(self, bool = True)
Layer.setIndexedColors(self)
Layer.setInputContext(self, QInputContext)
Layer.setInputMethodHints(self, Qt.InputMethodHints)
Layer.setLayout(self, QLayout)
Layer.setLayoutDirection(self, Qt.LayoutDirection)
Layer.setLegend(self, QString)
Layer.setLocale(self, QLocale)
Layer.setMargin(self, int)
Layer.setMask(self, QBitmap)

setMask(self, QRegion)

Layer.setMaximumHeight(self, int)
Layer.setMaximumSize(self, int, int)

setMaximumSize(self, QSize)

Layer.setMaximumWidth(self, int)
Layer.setMinimumHeight(self, int)
Layer.setMinimumSize(self, int, int)

setMinimumSize(self, QSize)

Layer.setMinimumWidth(self, int)
Layer.setMouseTracking(self, bool)
Layer.setObjectName(self, QString)
Layer.setPalette(self, QPalette)
Layer.setParent(self, QWidget)

setParent(self, QWidget, Qt.WindowFlags)

Layer.setProperty(self, str, QVariant) → bool
Layer.setScale(self, int, float, float, float = 0, int = 5, int = 5, int = 0, bool = False, float = -DBL_MAX, float = DBL_MAX, int = 50, float = 0, float = 0, int = 4, int = 4, bool = False, int = 4, bool = True)
Layer.setShortcutAutoRepeat(self, int, enabled: bool = True)
Layer.setShortcutEnabled(self, int, enabled: bool = True)
Layer.setShown(self, bool)
Layer.setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

Layer.setSizePolicy(self, QSizePolicy)

setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy)

Layer.setStatusTip(self, QString)
Layer.setStyle(self, QStyle)
Layer.setStyleSheet(self, QString)
Layer.setTabOrder(QWidget, QWidget)
Layer.setTicksLength(self, int, int)
Layer.setTitle(self, QString)
Layer.setTitleAlignment(self, int)
Layer.setTitleColor(self, QColor)
Layer.setTitleFont(self, QFont)
Layer.setToolTip(self, QString)
Layer.setUpdatesEnabled(self, bool)
Layer.setVisible(self, bool)
Layer.setWaterfallFillColor(self, QColor)
Layer.setWaterfallOffset(self, int, int, bool = True)
Layer.setWhatsThis(self, QString)
Layer.setWindowFilePath(self, QString)
Layer.setWindowFlags(self, Qt.WindowFlags)
Layer.setWindowIcon(self, QIcon)
Layer.setWindowIconText(self, QString)
Layer.setWindowModality(self, Qt.WindowModality)
Layer.setWindowModified(self, bool)
Layer.setWindowOpacity(self, float)
Layer.setWindowRole(self, QString)
Layer.setWindowState(self, Qt.WindowStates)
Layer.setWindowTitle(self, QString)
Layer.setXTitle(self, QString)
Layer.setYTitle(self, QString)
Layer.show(self)
Layer.showEvent(self, QShowEvent)
Layer.showFullScreen(self)
Layer.showGrid(self, int)

showGrid(self)

Layer.showMaximized(self)
Layer.showMinimized(self)
Layer.showNormal(self)
Layer.signalsBlocked(self) → bool
Layer.size(self) → QSize
Layer.sizeHint(self) → QSize
Layer.sizeIncrement(self) → QSize
Layer.sizePolicy(self) → QSizePolicy
Layer.spectrogram(self) → Spectrogram
Layer.stackUnder(self, QWidget)
Layer.startTimer(self, int) → int
Layer.staticMetaObject = <PyQt4.QtCore.QMetaObject object at 0x7fac9205b488>
Layer.statusTip(self) → QString
Layer.style(self) → QStyle
Layer.styleSheet(self) → QString
Layer.tabletEvent(self, QTabletEvent)
Layer.testAttribute(self, Qt.WidgetAttribute) → bool
Layer.thread(self) → QThread
Layer.timerEvent(self, QTimerEvent)
Layer.toolTip(self) → QString
Layer.topLevelWidget(self) → QWidget
Layer.tr(self, object, disambiguation: str = None, n: int = -1) → QString
Layer.trUtf8(self, object, disambiguation: str = None, n: int = -1) → QString
Layer.underMouse(self) → bool
Layer.ungrabGesture(self, Qt.GestureType)
Layer.unsetCursor(self)
Layer.unsetLayoutDirection(self)
Layer.unsetLocale(self)
Layer.update(self)

update(self, QRect) update(self, QRegion) update(self, int, int, int, int)

Layer.updateGeometry(self)
Layer.updateMicroFocus(self)
Layer.updatesEnabled(self) → bool
Layer.visibleRegion(self) → QRegion
Layer.whatsThis(self) → QString
Layer.wheelEvent(self, QWheelEvent)
Layer.width(self) → int
Layer.widthMM(self) → int
Layer.winId(self) → int
Layer.window(self) → QWidget
Layer.windowActivationChange(self, bool)
Layer.windowFilePath(self) → QString
Layer.windowFlags(self) → Qt.WindowFlags
Layer.windowIcon(self) → QIcon
Layer.windowIconText(self) → QString
Layer.windowModality(self) → Qt.WindowModality
Layer.windowOpacity(self) → float
Layer.windowRole(self) → QString
Layer.windowState(self) → Qt.WindowStates
Layer.windowTitle(self) → QString
Layer.windowType(self) → Qt.WindowType
Layer.x(self) → int
Layer.x11Info(self) → QX11Info
Layer.x11PictureHandle(self) → int
Layer.y(self) → int