schrodinger.ui.qt.schart module

A module for plotting with QChart.

Simple chart with a scatter plot and trendline:

self.chart = schart.SChart(

title=’Simple Chart’, xtitle=’Hobnobs’, ytitle=’Grobniks’, layout=layout)

xvals = [3, 5, 9] yvals = [7, 12, 14] series_data = self.chart.addDataSeries(‘Production’, xvals,

yvals=yvals, fit=True)

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.ui.qt.schart.compute_tick_interval(length, max_ticks=11, deltas=(1, 2, 5, 10, 10))

Computes the tick interval to span length with a maximum number of ticks using deltas to get the preferred tick intervals (scaled to a range of 0-10).

Note: delta should start with 1 and end with two 10s.

Parameters
  • length (float) – the length of the axis, usually the highest - lowest value

  • max_ticks (int) – the maximum number of ticks to use

  • deltas (indexable of float) – the preferred tick intervals to use

Returns

the tick interval to use

Return type

float

class schrodinger.ui.qt.schart.SeriesData(series, bar_set=None)

Bases: object

Holds the data for a plotted series

__init__(series, bar_set=None)

Create a SeriesData object

Parameters
  • series (QtChart.QAbstractSeries) – The plotted series

  • bar_set (QtChart.QBarSet) – For histograms, the plotted bar set

createTrendLine(name=None, fitter=None)

Add or recompute a trendline to a series

Parameters
  • name (str) – The name of the trendline series

  • fitter (callable) – The function to fit the data. Must have the same API as the fitLine method. If not provided, a linear regression is performed

Raises

FitError – If an error occurs when fitting the data

static fitLine(xvals, yvals, buffer=0)

Fit a trendline to the data

Parameters
  • xvals (list) – The x values

  • yvals (list) – The y values

  • buffer (float) – The data points returned will be at the minimum x value minus the buffer and the maximum x value plus the buffer

Return type

(list of float, list of float, scipy.stats._stats_mstats_common.LinregressResult`)

Returns

The x values of the data points the form the line, the corresponding y values, and the scipy line fit resuls object

exception schrodinger.ui.qt.schart.FitError

Bases: Exception

Raised for an error in fitting a trendline

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

class schrodinger.ui.qt.schart.BarSeriesSizeSpinBox(text, **kwargs)

Bases: schrodinger.ui.qt.swidgets.SLabeledDoubleSpinBox

A spinbox that can have its value updated without emitting a signal

A group of these spinboxes are all connected together. When the value of one spinbox changes, all of the others update their values. Thus, we need to catch the signal when the first spinbox value is changed, but need a way to update all the others without also triggering their valueChanged signals or we end up in an infinite loop.

nonEmittingUpdate(value)

Change the value of the spinbox without emitting a signal

Parameters

value (flot) – The new value of the spinbox

AdaptiveDecimalStepType = 1
class ButtonSymbols

Bases: int

CorrectToNearestValue = 1
CorrectToPreviousValue = 0
class CorrectionMode

Bases: int

DefaultStepType = 0
DrawChildren = 2
DrawWindowBackground = 1
IgnoreMask = 4
NoButtons = 2
class PaintDeviceMetric

Bases: int

PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
PlusMinus = 1
class RenderFlag

Bases: int

class RenderFlags

Bases: sip.simplewrapper

QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

StepDownEnabled = 2
class StepEnabled

Bases: sip.simplewrapper

QAbstractSpinBox.StepEnabled(Union[QAbstractSpinBox.StepEnabled, QAbstractSpinBox.StepEnabledFlag]) QAbstractSpinBox.StepEnabled(QAbstractSpinBox.StepEnabled)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

class StepEnabledFlag

Bases: int

StepNone = 0
class StepType

Bases: int

StepUpEnabled = 1
UpDownArrows = 0
__init__(text, **kwargs)

Create a SLabledDoubleSpinBox instance

Parameters
  • text (str) – The text of the label

  • side (str) – ‘left’ if the label should appear to the left of the SDoubleSpinBox (default), or ‘top’ if the label should appear above it

  • stretch (bool) – Whether to put a stretch after the SDoubleSpinBox (or after the after_label). Default is True, even if side=’top’.

  • after_label (str) – Label text to put after the SDoubleSpinBox - default is None

  • parent (QObject) – the parent object of this SDoubleSpinBox

  • minimum (float) – The minimum value of this SDoubleSpinBox

  • maximum (float) – The maximum value of this SDoubleSpinBox

  • value (float) – The initial value of this SDoubleSpinBox

  • stepsize (float) – The stepsize each arrow click changes the value by

  • decimals (int) – Number of decimal places to display

  • layout (QLayout) – If supplied, the SDoubleSpinBox created will be added to this layout

  • command (python callable) – The callback for the valueChanged signal. This command will not be called during initialization unless nocall is set to False.

  • nocall (bool) – True if the callback command should not be called during initialization, False (default) if the command should be called.

  • tip (str) – The tooltip to apply to the labels and spinbox

acceptDrops(self) → bool
accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
addAction(self, QAction)
addActions(self, Iterable[QAction])
adjustSize(self)
alignment(self) → Qt.Alignment
autoFillBackground(self) → bool
backgroundRole(self) → QPalette.ColorRole
baseSize(self) → QSize
blockSignals(self, bool) → bool
buttonSymbols(self) → QAbstractSpinBox.ButtonSymbols
changeEvent(self, QEvent)
childAt(self, QPoint) → QWidget

childAt(self, int, int) -> QWidget

childEvent(self, QChildEvent)
children(self) → List[QObject]
childrenRect(self) → QRect
childrenRegion(self) → QRegion
cleanText(self) → str
clear(self)
clearFocus(self)
clearMask(self)
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
correctionMode(self) → QAbstractSpinBox.CorrectionMode
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) → QWidget
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

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

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

devType(self) → int
devicePixelRatio(self) → int
devicePixelRatioF(self) → float
devicePixelRatioFScale() → float
disconnect(self)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
editingFinished

editingFinished(self) [signal]

effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
find(sip.voidptr) → QWidget
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]

findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]

fixup(self, str) → str
focusInEvent(self, QFocusEvent)
focusNextChild(self) → bool
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPolicy(self) → Qt.FocusPolicy
focusPreviousChild(self) → bool
focusProxy(self) → QWidget
focusWidget(self) → QWidget
font(self) → QFont
fontInfo(self) → QFontInfo
fontMetrics(self) → QFontMetrics
foregroundRole(self) → QPalette.ColorRole
frameGeometry(self) → QRect
frameSize(self) → QSize
geometry(self) → QRect
getContentsMargins(self) → Tuple[int, int, int, int]
grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) → QPixmap
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())
grabKeyboard(self)
grabMouse(self)

grabMouse(self, Union[QCursor, Qt.CursorShape])

grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int
graphicsEffect(self) → QGraphicsEffect
graphicsProxyWidget(self) → QGraphicsProxyWidget
hasAcceptableInput(self) → bool
hasFocus(self) → bool
hasFrame(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
inherits(self, str) → bool
initPainter(self, QPainter)
initStyleOption(self, QStyleOptionSpinBox)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
BarSeriesSizeSpinBox.insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
interpretText(self)
isAccelerated(self) → bool
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isGroupSeparatorShown(self) → bool
isHidden(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isReadOnly(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
keyboardTracking(self) → bool
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
lineEdit(self) → QLineEdit
locale(self) → QLocale
logicalDpiX(self) → int
logicalDpiY(self) → int
lower(self)
mapFrom(self, QWidget, QPoint) → QPoint
mapFromGlobal(self, QPoint) → QPoint
mapFromParent(self, QPoint) → QPoint
mapTo(self, QWidget, QPoint) → QPoint
mapToGlobal(self, QPoint) → QPoint
mapToParent(self, QPoint) → QPoint
mask(self) → QRegion
maximum(self) → float
maximumHeight(self) → int
maximumSize(self) → QSize
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
minimum(self) → float
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

moveEvent(self, QMoveEvent)
moveToThread(self, QThread)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
nativeParentWidget(self) → QWidget
nextInFocusChain(self) → QWidget
normalGeometry(self) → QRect
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
paintEngine(self) → QPaintEngine
paintEvent(self, QPaintEvent)
paintingActive(self) → bool
palette(self) → QPalette
parent(self) → QObject
parentWidget(self) → QWidget
physicalDpiX(self) → int
physicalDpiY(self) → int
pos(self) → QPoint
prefix(self) → str
previousInFocusChain(self) → QWidget
property(self, str) → Any
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.

raise_(self)
receivers(self, PYQT_SIGNAL) → int
rect(self) → QRect
releaseKeyboard(self)
releaseMouse(self)
releaseShortcut(self, int)
removeAction(self, QAction)
removeEventFilter(self, QObject)
render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))

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

repaint(self)

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

reset()

Reset the labels and ComboBox to their default values

resize(self, QSize)

resize(self, int, int)

resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
saveGeometry(self) → QByteArray
BarSeriesSizeSpinBox.scroll(self, int, int)

scroll(self, int, int, QRect)

selectAll(self)
sender(self) → QObject
senderSignalIndex(self) → int
setAccelerated(self, bool)
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAlignment(self, Union[Qt.Alignment, Qt.AlignmentFlag])
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundRole(self, QPalette.ColorRole)
BarSeriesSizeSpinBox.setBaseSize(self, int, int)

setBaseSize(self, QSize)

setButtonSymbols(self, QAbstractSpinBox.ButtonSymbols)
BarSeriesSizeSpinBox.setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCorrectionMode(self, QAbstractSpinBox.CorrectionMode)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDecimals(self, int)
setDisabled(self, bool)
setEnabled(state)

Set all child widgets to enabled state of state

Parameters

state (bool) – True if widgets should be enabled, False if not

setFixedHeight(self, int)
setFixedSize(self, QSize)

setFixedSize(self, int, int)

setFixedWidth(self, int)
setFocus(self)

setFocus(self, Qt.FocusReason)

setFocusPolicy(self, Qt.FocusPolicy)
setFocusProxy(self, QWidget)
setFont(self, QFont)
setForegroundRole(self, QPalette.ColorRole)
setFrame(self, bool)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setGroupSeparatorShown(self, bool)
setHidden(self, bool)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setKeyboardTracking(self, bool)
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLineEdit(self, QLineEdit)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

setMaximum(self, float)
setMaximumHeight(self, int)
BarSeriesSizeSpinBox.setMaximumSize(self, int, int)

setMaximumSize(self, QSize)

setMaximumWidth(self, int)
setMinimum(self, float)
setMinimumHeight(self, int)
BarSeriesSizeSpinBox.setMinimumSize(self, int, int)

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
setMouseTracking(self, bool)
setObjectName(self, str)
setPalette(self, QPalette)
setParent(self, QWidget)

setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])

setPrefix(self, str)
setProperty(self, str, Any) → bool
BarSeriesSizeSpinBox.setRange(self, float, float)
setReadOnly(self, bool)
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSingleStep(self, float)
BarSeriesSizeSpinBox.setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setSpecialValueText(self, str)
setStatusTip(self, str)
setStepType(self, QAbstractSpinBox.StepType)
setStyle(self, QStyle)
setStyleSheet(self, str)
setSuffix(self, str)
BarSeriesSizeSpinBox.setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setToolTip(self, str)
setToolTipDuration(self, int)
setUpdatesEnabled(self, bool)
setValue(self, float)
setVisible(state)

Set all child widgets to visible state of state

Parameters

state (bool) – True if widgets should be visible, False if not

setWhatsThis(self, str)
setWindowFilePath(self, str)
setWindowFlag(self, Qt.WindowType, on: bool = True)
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
setWindowIcon(self, QIcon)
setWindowIconText(self, str)
setWindowModality(self, Qt.WindowModality)
setWindowModified(self, bool)
setWindowOpacity(self, float)
setWindowRole(self, str)
setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
setWindowTitle(self, str)
setWrapping(self, bool)
sharedPainter(self) → QPainter
show(self)
showEvent(self, QShowEvent)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
signalsBlocked(self) → bool
singleStep(self) → float
size(self) → QSize
sizeHint(self) → QSize
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
specialValueText(self) → str
stackUnder(self, QWidget)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
stepBy(self, int)
stepDown(self)
stepEnabled(self) → QAbstractSpinBox.StepEnabled
stepType(self) → QAbstractSpinBox.StepType
stepUp(self)
style(self) → QStyle
styleSheet(self) → str
suffix(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
text(self) → str
textFromValue(self, float) → str
thread(self) → QThread
timerEvent(self, QTimerEvent)
toolTip(self) → str
toolTipDuration(self) → int
tr(self, str, disambiguation: str = None, n: int = - 1) → str
underMouse(self) → bool
ungrabGesture(self, Qt.GestureType)
unsetCursor(self)
unsetLayoutDirection(self)
unsetLocale(self)
update(self)

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

updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
validate(self, str, int) → Tuple[QValidator.State, str, int]
value(self) → float
valueChanged

valueChanged(self, float) [signal] valueChanged(self, str) [signal]

valueFromText(self, str) → float
visibleRegion(self) → QRegion
whatsThis(self) → str
wheelEvent(self, QWheelEvent)
width(self) → int
widthMM(self) → int
winId(self) → sip.voidptr
window(self) → QWidget
windowFilePath(self) → str
windowFlags(self) → Qt.WindowFlags
windowHandle(self) → QWindow
windowIcon(self) → QIcon
windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self) → str
windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self) → Qt.WindowModality
windowOpacity(self) → float
windowRole(self) → str
windowState(self) → Qt.WindowStates
windowTitle(self) → str
windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self) → Qt.WindowType
wrapping(self) → bool
x(self) → int
y(self) → int
class schrodinger.ui.qt.schart.SeriesParams(series, layout, row, name_only=False)

Bases: object

A set of widgets that control the visual plotting of a QChart series

SHAPES = {'Circle': 0, 'Rectangle': 1}
LINE = 'line'
SCATTER = 'scatter'
BAR = 'bar'
SUPPORTED_TYPES = {<class 'PyQt5.QtChart.QScatterSeries'>: 'scatter', <class 'PyQt5.QtChart.QLineSeries'>: 'line', <class 'PyQt5.QtChart.QBarSeries'>: 'bar'}
__init__(series, layout, row, name_only=False)

Create a SeriesParams object

Note that there is no overall enclosing frame or layout for this set of widgets because they are placed individually in cells of a grid layout.

Parameters
  • series (QtChart.QAbstractSeries) – The plotted series. Currently this class is only implemented with Line and Scatter series in mind.

  • layout (QtWidgets.QGridLayout) – The layout to place these widgets in

  • row (int) – The row of the grid layout for these widgets

  • name_only (bool) – Show only the edit for the name of the series

static getParamRows(series, layout, row)

Get a SeriesParam object for each set of plot items managed by this series. For an QXYSeries, there will be one SeriesParam. For a QBarSeries, there will be one SeriesParam for each QBarSet.

Parameters
  • series (QtChart.QAbstractSeries) – The series to create parameters for

  • layout (swidgets.SGridBoxLayout) – The layout to place the SeriesParam widgets in

  • row (int) – The row of the grid layout to place the widgets in

Return type

list

Returns

Each item of the list

getSize()

Get the current size of the series. What “size” means depends on the the series type

Return type

float

Returns

The series size

setSize()

Set the size of the series. What size means depends on the series type.

getName()

Get the name of the series

Return type

str

Returns

The name of the series

setName()

Set the name of the series based on the widget settings

getColor()

Get the color of the series

getColorFromWidget()

Get the color from the color widget

Return type

QtGui.QColor

Returns

The current color of the color widget

setColor()

Set the color of the series

apply()

Apply the current widget settings to the series

class schrodinger.ui.qt.schart.BarSeriesParams(barset, *args, subrow=False, **kwargs)

Bases: schrodinger.ui.qt.schart.SeriesParams

A set of widgets that control the visual plotting of a QChart bar series

__init__(barset, *args, subrow=False, **kwargs)

Create a BarSeriesParams instance

Parameters
  • barset (QtChart.QBarSet) – The bar set for these parameters

  • subrow (bool) – False if this is for the first bar set in the series, True if for one of the lower ones. Only the first bar set sets the properties that must be the same for all sets in the series

getSize()

See paraent method for documentation

setSize()

See paraent method for documentation

getName()

See paraent method for documentation

setName()

See paraent method for documentation

getColor()

See paraent method for documentation

setColor()

See paraent method for documentation

BAR = 'bar'
LINE = 'line'
SCATTER = 'scatter'
SHAPES = {'Circle': 0, 'Rectangle': 1}
SUPPORTED_TYPES = {<class 'PyQt5.QtChart.QScatterSeries'>: 'scatter', <class 'PyQt5.QtChart.QLineSeries'>: 'line', <class 'PyQt5.QtChart.QBarSeries'>: 'bar'}
apply()

Apply the current widget settings to the series

getColorFromWidget()

Get the color from the color widget

Return type

QtGui.QColor

Returns

The current color of the color widget

static getParamRows(series, layout, row)

Get a SeriesParam object for each set of plot items managed by this series. For an QXYSeries, there will be one SeriesParam. For a QBarSeries, there will be one SeriesParam for each QBarSet.

Parameters
  • series (QtChart.QAbstractSeries) – The series to create parameters for

  • layout (swidgets.SGridBoxLayout) – The layout to place the SeriesParam widgets in

  • row (int) – The row of the grid layout to place the widgets in

Return type

list

Returns

Each item of the list

class schrodinger.ui.qt.schart.SeriesDialog(series, *args, title='Series Parameters', help_topic='QCHART_SERIES_DIALOG', **kwargs)

Bases: schrodinger.ui.qt.swidgets.SDialog

A dialog allowing the user to control the visual look of series

__init__(series, *args, title='Series Parameters', help_topic='QCHART_SERIES_DIALOG', **kwargs)

Create a SeriesDialog object

Parameters

series (list) – The list of series to display in this dialog

See parent class for additional documentation

layOut()

Lay out the widgets

accept()

Apply the current settings

Accepted = 1
class DialogCode

Bases: int

DrawChildren = 2
DrawWindowBackground = 1
IgnoreMask = 4
class PaintDeviceMetric

Bases: int

PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
Rejected = 0
class RenderFlag

Bases: int

class RenderFlags

Bases: sip.simplewrapper

QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

acceptDrops(self) → bool
accepted

accepted(self) [signal]

accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
addAction(self, QAction)
addActions(self, Iterable[QAction])
adjustSize(self)
autoFillBackground(self) → bool
backgroundRole(self) → QPalette.ColorRole
baseSize(self) → QSize
blockSignals(self, bool) → bool
changeEvent(self, QEvent)
childAt(self, QPoint) → QWidget

childAt(self, int, int) -> QWidget

childEvent(self, QChildEvent)
children(self) → List[QObject]
childrenRect(self) → QRect
childrenRegion(self) → QRegion
clearFocus(self)
clearMask(self)
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) → QWidget
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

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

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

devType(self) → int
devicePixelRatio(self) → int
devicePixelRatioF(self) → float
devicePixelRatioFScale() → float
disconnect(self)
disconnectNotify(self, QMetaMethod)
done(self, int)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
error(msg)

Display an error dialog with a message

Parameters

msg (str) – The message to display in the error dialog

event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
exec(self) → int
exec_(self) → int
find(sip.voidptr) → QWidget
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]

findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]

finished

finished(self, int) [signal]

focusInEvent(self, QFocusEvent)
focusNextChild(self) → bool
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPolicy(self) → Qt.FocusPolicy
focusPreviousChild(self) → bool
focusProxy(self) → QWidget
focusWidget(self) → QWidget
font(self) → QFont
fontInfo(self) → QFontInfo
fontMetrics(self) → QFontMetrics
foregroundRole(self) → QPalette.ColorRole
frameGeometry(self) → QRect
frameSize(self) → QSize
geometry(self) → QRect
getContentsMargins(self) → Tuple[int, int, int, int]
giveHelp()

Display the help topic for this dialog

grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) → QPixmap
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())
grabKeyboard(self)
grabMouse(self)

grabMouse(self, Union[QCursor, Qt.CursorShape])

grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int
graphicsEffect(self) → QGraphicsEffect
graphicsProxyWidget(self) → QGraphicsProxyWidget
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
info(msg)

Display an information dialog with a message

Parameters

msg (str) – The message to display in the information dialog

inherits(self, str) → bool
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
SeriesDialog.insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isSizeGripEnabled(self) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
locale(self) → QLocale
logicalDpiX(self) → int
logicalDpiY(self) → int
lower(self)
mapFrom(self, QWidget, QPoint) → QPoint
mapFromGlobal(self, QPoint) → QPoint
mapFromParent(self, QPoint) → QPoint
mapTo(self, QWidget, QPoint) → QPoint
mapToGlobal(self, QPoint) → QPoint
mapToParent(self, QPoint) → QPoint
mask(self) → QRegion
maximumHeight(self) → int
maximumSize(self) → QSize
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

moveEvent(self, QMoveEvent)
moveToThread(self, QThread)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
nativeParentWidget(self) → QWidget
nextInFocusChain(self) → QWidget
normalGeometry(self) → QRect
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

open(self)
overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
paintEngine(self) → QPaintEngine
paintEvent(self, QPaintEvent)
paintingActive(self) → bool
palette(self) → QPalette
parent(self) → QObject
parentWidget(self) → QWidget
physicalDpiX(self) → int
physicalDpiY(self) → int
pos(self) → QPoint
previousInFocusChain(self) → QWidget
property(self, str) → Any
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.

raise_(self)
receivers(self, PYQT_SIGNAL) → int
rect(self) → QRect
reject(self)
rejected

rejected(self) [signal]

releaseKeyboard(self)
releaseMouse(self)
releaseShortcut(self, int)
removeAction(self, QAction)
removeEventFilter(self, QObject)
render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))

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

repaint(self)

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

reset()

Reset the panel when the Reset button is pressed. Must be re-implemented in a subclass

resize(self, QSize)

resize(self, int, int)

resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
result(self) → int
saveGeometry(self) → QByteArray
SeriesDialog.scroll(self, int, int)

scroll(self, int, int, QRect)

sender(self) → QObject
senderSignalIndex(self) → int
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundRole(self, QPalette.ColorRole)
SeriesDialog.setBaseSize(self, int, int)

setBaseSize(self, QSize)

SeriesDialog.setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDisabled(self, bool)
setEnabled(self, bool)
setFixedHeight(self, int)
setFixedSize(self, QSize)

setFixedSize(self, int, int)

setFixedWidth(self, int)
setFocus(self)

setFocus(self, Qt.FocusReason)

setFocusPolicy(self, Qt.FocusPolicy)
setFocusProxy(self, QWidget)
setFont(self, QFont)
setForegroundRole(self, QPalette.ColorRole)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setHidden(self, bool)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

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

setMaximumSize(self, QSize)

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

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
setModal(self, bool)
setMouseTracking(self, bool)
setObjectName(self, str)
setPalette(self, QPalette)
setParent(self, QWidget)

setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])

setProperty(self, str, Any) → bool
setResult(self, int)
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizeGripEnabled(self, bool)
SeriesDialog.setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
SeriesDialog.setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setToolTip(self, str)
setToolTipDuration(self, int)
setUpdatesEnabled(self, bool)
setVisible(self, bool)
setWhatsThis(self, str)
setWindowFilePath(self, str)
setWindowFlag(self, Qt.WindowType, on: bool = True)
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
setWindowIcon(self, QIcon)
setWindowIconText(self, str)
setWindowModality(self, Qt.WindowModality)
setWindowModified(self, bool)
setWindowOpacity(self, float)
setWindowRole(self, str)
setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
setWindowTitle(self, str)
sharedPainter(self) → QPainter
show(self)
showEvent(self, QShowEvent)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
signalsBlocked(self) → bool
size(self) → QSize
sizeHint(self) → QSize
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
stackUnder(self, QWidget)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
thread(self) → QThread
timerEvent(self, QTimerEvent)
toolTip(self) → str
toolTipDuration(self) → int
tr(self, str, disambiguation: str = None, n: int = - 1) → str
underMouse(self) → bool
ungrabGesture(self, Qt.GestureType)
unsetCursor(self)
unsetLayoutDirection(self)
unsetLocale(self)
update(self)

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

updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
visibleRegion(self) → QRegion
warning(msg)

Display a warning dialog with a message

Parameters

msg (str) – The message to display in the warning dialog

whatsThis(self) → str
wheelEvent(self, QWheelEvent)
width(self) → int
widthMM(self) → int
winId(self) → sip.voidptr
window(self) → QWidget
windowFilePath(self) → str
windowFlags(self) → Qt.WindowFlags
windowHandle(self) → QWindow
windowIcon(self) → QIcon
windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self) → str
windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self) → Qt.WindowModality
windowOpacity(self) → float
windowRole(self) → str
windowState(self) → Qt.WindowStates
windowTitle(self) → str
windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self) → Qt.WindowType
x(self) → int
y(self) → int
class schrodinger.ui.qt.schart.AxisParams(axis, series, label, layout, row)

Bases: object

A set of widgets to control QChart axis parameters

__init__(axis, series, label, layout, row)

Create an AxisParams object

The widgets are in an enclosing frame.

Parameters
  • axis (QtChart.QValueAxis) – The axis to control

  • series (list) – The list of data series on the plot

  • label (str) – The name of the axis in the dialog

  • layout (QtWidgets.QGridBoxLayout) – The layout to place the widgets into

  • row (int) – The row in the grid layout where these params start

apply()

Apply the current widget settings

logChanged()

Check if the current state of the log checkbox is different from the current type of axis

Return type

bool

Returns

True if the current axis is inconsistent with the state of the log checkbox

class schrodinger.ui.qt.schart.AxesDialog(axes, series, *args, title='Axes Parameters', help_topic='QCHART_AXES_DIALOG', **kwargs)

Bases: schrodinger.ui.qt.swidgets.SDialog

A dialog for controlling the axes in a QtChart

Parameters

axes (list) – A list of QAbstractAxes objects this dialog should control

See parent class for additional documentation

logToggled
__init__(axes, series, *args, title='Axes Parameters', help_topic='QCHART_AXES_DIALOG', **kwargs)

Create an AxesDialog object

layOut()

Lay out the widgets

accept()

Apply the current settings

Accepted = 1
class DialogCode

Bases: int

DrawChildren = 2
DrawWindowBackground = 1
IgnoreMask = 4
class PaintDeviceMetric

Bases: int

PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
Rejected = 0
class RenderFlag

Bases: int

class RenderFlags

Bases: sip.simplewrapper

QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

acceptDrops(self) → bool
accepted

accepted(self) [signal]

accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
addAction(self, QAction)
addActions(self, Iterable[QAction])
adjustSize(self)
autoFillBackground(self) → bool
backgroundRole(self) → QPalette.ColorRole
baseSize(self) → QSize
blockSignals(self, bool) → bool
changeEvent(self, QEvent)
childAt(self, QPoint) → QWidget

childAt(self, int, int) -> QWidget

childEvent(self, QChildEvent)
children(self) → List[QObject]
childrenRect(self) → QRect
childrenRegion(self) → QRegion
clearFocus(self)
clearMask(self)
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) → QWidget
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

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

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

devType(self) → int
devicePixelRatio(self) → int
devicePixelRatioF(self) → float
devicePixelRatioFScale() → float
disconnect(self)
disconnectNotify(self, QMetaMethod)
done(self, int)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
error(msg)

Display an error dialog with a message

Parameters

msg (str) – The message to display in the error dialog

event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
exec(self) → int
exec_(self) → int
find(sip.voidptr) → QWidget
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]

findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]

finished

finished(self, int) [signal]

focusInEvent(self, QFocusEvent)
focusNextChild(self) → bool
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPolicy(self) → Qt.FocusPolicy
focusPreviousChild(self) → bool
focusProxy(self) → QWidget
focusWidget(self) → QWidget
font(self) → QFont
fontInfo(self) → QFontInfo
fontMetrics(self) → QFontMetrics
foregroundRole(self) → QPalette.ColorRole
frameGeometry(self) → QRect
frameSize(self) → QSize
geometry(self) → QRect
getContentsMargins(self) → Tuple[int, int, int, int]
giveHelp()

Display the help topic for this dialog

grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) → QPixmap
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())
grabKeyboard(self)
grabMouse(self)

grabMouse(self, Union[QCursor, Qt.CursorShape])

grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int
graphicsEffect(self) → QGraphicsEffect
graphicsProxyWidget(self) → QGraphicsProxyWidget
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
info(msg)

Display an information dialog with a message

Parameters

msg (str) – The message to display in the information dialog

inherits(self, str) → bool
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
AxesDialog.insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isSizeGripEnabled(self) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
locale(self) → QLocale
logicalDpiX(self) → int
logicalDpiY(self) → int
lower(self)
mapFrom(self, QWidget, QPoint) → QPoint
mapFromGlobal(self, QPoint) → QPoint
mapFromParent(self, QPoint) → QPoint
mapTo(self, QWidget, QPoint) → QPoint
mapToGlobal(self, QPoint) → QPoint
mapToParent(self, QPoint) → QPoint
mask(self) → QRegion
maximumHeight(self) → int
maximumSize(self) → QSize
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

moveEvent(self, QMoveEvent)
moveToThread(self, QThread)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
nativeParentWidget(self) → QWidget
nextInFocusChain(self) → QWidget
normalGeometry(self) → QRect
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

open(self)
overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
paintEngine(self) → QPaintEngine
paintEvent(self, QPaintEvent)
paintingActive(self) → bool
palette(self) → QPalette
parent(self) → QObject
parentWidget(self) → QWidget
physicalDpiX(self) → int
physicalDpiY(self) → int
pos(self) → QPoint
previousInFocusChain(self) → QWidget
property(self, str) → Any
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.

raise_(self)
receivers(self, PYQT_SIGNAL) → int
rect(self) → QRect
reject(self)
rejected

rejected(self) [signal]

releaseKeyboard(self)
releaseMouse(self)
releaseShortcut(self, int)
removeAction(self, QAction)
removeEventFilter(self, QObject)
render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))

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

repaint(self)

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

reset()

Reset the panel when the Reset button is pressed. Must be re-implemented in a subclass

resize(self, QSize)

resize(self, int, int)

resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
result(self) → int
saveGeometry(self) → QByteArray
AxesDialog.scroll(self, int, int)

scroll(self, int, int, QRect)

sender(self) → QObject
senderSignalIndex(self) → int
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundRole(self, QPalette.ColorRole)
AxesDialog.setBaseSize(self, int, int)

setBaseSize(self, QSize)

AxesDialog.setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDisabled(self, bool)
setEnabled(self, bool)
setFixedHeight(self, int)
setFixedSize(self, QSize)

setFixedSize(self, int, int)

setFixedWidth(self, int)
setFocus(self)

setFocus(self, Qt.FocusReason)

setFocusPolicy(self, Qt.FocusPolicy)
setFocusProxy(self, QWidget)
setFont(self, QFont)
setForegroundRole(self, QPalette.ColorRole)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setHidden(self, bool)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

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

setMaximumSize(self, QSize)

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

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
setModal(self, bool)
setMouseTracking(self, bool)
setObjectName(self, str)
setPalette(self, QPalette)
setParent(self, QWidget)

setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])

setProperty(self, str, Any) → bool
setResult(self, int)
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizeGripEnabled(self, bool)
AxesDialog.setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
AxesDialog.setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setToolTip(self, str)
setToolTipDuration(self, int)
setUpdatesEnabled(self, bool)
setVisible(self, bool)
setWhatsThis(self, str)
setWindowFilePath(self, str)
setWindowFlag(self, Qt.WindowType, on: bool = True)
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
setWindowIcon(self, QIcon)
setWindowIconText(self, str)
setWindowModality(self, Qt.WindowModality)
setWindowModified(self, bool)
setWindowOpacity(self, float)
setWindowRole(self, str)
setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
setWindowTitle(self, str)
sharedPainter(self) → QPainter
show(self)
showEvent(self, QShowEvent)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
signalsBlocked(self) → bool
size(self) → QSize
sizeHint(self) → QSize
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
stackUnder(self, QWidget)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
thread(self) → QThread
timerEvent(self, QTimerEvent)
toolTip(self) → str
toolTipDuration(self) → int
tr(self, str, disambiguation: str = None, n: int = - 1) → str
underMouse(self) → bool
ungrabGesture(self, Qt.GestureType)
unsetCursor(self)
unsetLayoutDirection(self)
unsetLocale(self)
update(self)

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

updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
visibleRegion(self) → QRegion
warning(msg)

Display a warning dialog with a message

Parameters

msg (str) – The message to display in the warning dialog

whatsThis(self) → str
wheelEvent(self, QWheelEvent)
width(self) → int
widthMM(self) → int
winId(self) → sip.voidptr
window(self) → QWidget
windowFilePath(self) → str
windowFlags(self) → Qt.WindowFlags
windowHandle(self) → QWindow
windowIcon(self) → QIcon
windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self) → str
windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self) → Qt.WindowModality
windowOpacity(self) → float
windowRole(self) → str
windowState(self) → Qt.WindowStates
windowTitle(self) → str
windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self) → Qt.WindowType
x(self) → int
y(self) → int
class schrodinger.ui.qt.schart.BinsDialog(series, *args, title='Number of Bins', help_topic='QCHART_BINS_DIALOG', **kwargs)

Bases: schrodinger.ui.qt.swidgets.SDialog

A dialog for controlling the bins in a QtChart histogram

BINS = 'Number of bins:'
EDGES = 'Define bin edges:'
__init__(series, *args, title='Number of Bins', help_topic='QCHART_BINS_DIALOG', **kwargs)

Create an BinsDialog object

Parameters

series (list) – The list of series to display in this dialog

See parent class for additional documentation

layOut()

Lay out the widgets

modeChanged(update=True)

React to changing between defining the number of bins and the edge values

Parameters

update (bool) – Whether to update the plotted bins

updateToggled()

React to a change in the interactivity state

updateBins(edges=None, force=False)

Update the plotted bins

Parameters
  • edges (list) – A list of the bin edges. Each item is a float

  • force (bool) – Whether to force the update regardless of the interactivity state

accept()

Update the bins and close the dialog

reject()

Reset the bins to their original state and close the dialog

Accepted = 1
class DialogCode

Bases: int

DrawChildren = 2
DrawWindowBackground = 1
IgnoreMask = 4
class PaintDeviceMetric

Bases: int

PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
Rejected = 0
class RenderFlag

Bases: int

class RenderFlags

Bases: sip.simplewrapper

QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

acceptDrops(self) → bool
accepted

accepted(self) [signal]

accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
addAction(self, QAction)
addActions(self, Iterable[QAction])
adjustSize(self)
autoFillBackground(self) → bool
backgroundRole(self) → QPalette.ColorRole
baseSize(self) → QSize
blockSignals(self, bool) → bool
changeEvent(self, QEvent)
childAt(self, QPoint) → QWidget

childAt(self, int, int) -> QWidget

childEvent(self, QChildEvent)
children(self) → List[QObject]
childrenRect(self) → QRect
childrenRegion(self) → QRegion
clearFocus(self)
clearMask(self)
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) → QWidget
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

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

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

devType(self) → int
devicePixelRatio(self) → int
devicePixelRatioF(self) → float
devicePixelRatioFScale() → float
disconnect(self)
disconnectNotify(self, QMetaMethod)
done(self, int)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMoveEvent(self, QDragMoveEvent)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
enterEvent(self, QEvent)
error(msg)

Display an error dialog with a message

Parameters

msg (str) – The message to display in the error dialog

event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
exec(self) → int
exec_(self) → int
find(sip.voidptr) → QWidget
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]

findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]

finished

finished(self, int) [signal]

focusInEvent(self, QFocusEvent)
focusNextChild(self) → bool
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPolicy(self) → Qt.FocusPolicy
focusPreviousChild(self) → bool
focusProxy(self) → QWidget
focusWidget(self) → QWidget
font(self) → QFont
fontInfo(self) → QFontInfo
fontMetrics(self) → QFontMetrics
foregroundRole(self) → QPalette.ColorRole
frameGeometry(self) → QRect
frameSize(self) → QSize
geometry(self) → QRect
getContentsMargins(self) → Tuple[int, int, int, int]
giveHelp()

Display the help topic for this dialog

grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) → QPixmap
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())
grabKeyboard(self)
grabMouse(self)

grabMouse(self, Union[QCursor, Qt.CursorShape])

grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int
graphicsEffect(self) → QGraphicsEffect
graphicsProxyWidget(self) → QGraphicsProxyWidget
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
info(msg)

Display an information dialog with a message

Parameters

msg (str) – The message to display in the information dialog

inherits(self, str) → bool
initPainter(self, QPainter)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
BinsDialog.insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isSizeGripEnabled(self) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
locale(self) → QLocale
logicalDpiX(self) → int
logicalDpiY(self) → int
lower(self)
mapFrom(self, QWidget, QPoint) → QPoint
mapFromGlobal(self, QPoint) → QPoint
mapFromParent(self, QPoint) → QPoint
mapTo(self, QWidget, QPoint) → QPoint
mapToGlobal(self, QPoint) → QPoint
mapToParent(self, QPoint) → QPoint
mask(self) → QRegion
maximumHeight(self) → int
maximumSize(self) → QSize
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

moveEvent(self, QMoveEvent)
moveToThread(self, QThread)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
nativeParentWidget(self) → QWidget
nextInFocusChain(self) → QWidget
normalGeometry(self) → QRect
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

open(self)
overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
paintEngine(self) → QPaintEngine
paintEvent(self, QPaintEvent)
paintingActive(self) → bool
palette(self) → QPalette
parent(self) → QObject
parentWidget(self) → QWidget
physicalDpiX(self) → int
physicalDpiY(self) → int
pos(self) → QPoint
previousInFocusChain(self) → QWidget
property(self, str) → Any
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.

raise_(self)
receivers(self, PYQT_SIGNAL) → int
rect(self) → QRect
rejected

rejected(self) [signal]

releaseKeyboard(self)
releaseMouse(self)
releaseShortcut(self, int)
removeAction(self, QAction)
removeEventFilter(self, QObject)
render(self, QPaintDevice, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: Union[QWidget.RenderFlags, QWidget.RenderFlag] = QWidget.RenderFlags(QWidget.DrawWindowBackground | QWidget.DrawChildren))

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

repaint(self)

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

reset()

Reset the panel when the Reset button is pressed. Must be re-implemented in a subclass

resize(self, QSize)

resize(self, int, int)

resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
result(self) → int
saveGeometry(self) → QByteArray
BinsDialog.scroll(self, int, int)

scroll(self, int, int, QRect)

sender(self) → QObject
senderSignalIndex(self) → int
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundRole(self, QPalette.ColorRole)
BinsDialog.setBaseSize(self, int, int)

setBaseSize(self, QSize)

BinsDialog.setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDisabled(self, bool)
setEnabled(self, bool)
setFixedHeight(self, int)
setFixedSize(self, QSize)

setFixedSize(self, int, int)

setFixedWidth(self, int)
setFocus(self)

setFocus(self, Qt.FocusReason)

setFocusPolicy(self, Qt.FocusPolicy)
setFocusProxy(self, QWidget)
setFont(self, QFont)
setForegroundRole(self, QPalette.ColorRole)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setHidden(self, bool)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

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

setMaximumSize(self, QSize)

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

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
setModal(self, bool)
setMouseTracking(self, bool)
setObjectName(self, str)
setPalette(self, QPalette)
setParent(self, QWidget)

setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])

setProperty(self, str, Any) → bool
setResult(self, int)
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizeGripEnabled(self, bool)
BinsDialog.setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
BinsDialog.setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setToolTip(self, str)
setToolTipDuration(self, int)
setUpdatesEnabled(self, bool)
setVisible(self, bool)
setWhatsThis(self, str)
setWindowFilePath(self, str)
setWindowFlag(self, Qt.WindowType, on: bool = True)
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
setWindowIcon(self, QIcon)
setWindowIconText(self, str)
setWindowModality(self, Qt.WindowModality)
setWindowModified(self, bool)
setWindowOpacity(self, float)
setWindowRole(self, str)
setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
setWindowTitle(self, str)
sharedPainter(self) → QPainter
show(self)
showEvent(self, QShowEvent)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
signalsBlocked(self) → bool
size(self) → QSize
sizeHint(self) → QSize
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
stackUnder(self, QWidget)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
thread(self) → QThread
timerEvent(self, QTimerEvent)
toolTip(self) → str
toolTipDuration(self) → int
tr(self, str, disambiguation: str = None, n: int = - 1) → str
underMouse(self) → bool
ungrabGesture(self, Qt.GestureType)
unsetCursor(self)
unsetLayoutDirection(self)
unsetLocale(self)
update(self)

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

updateGeometry(self)
updateMicroFocus(self)
updatesEnabled(self) → bool
visibleRegion(self) → QRegion
warning(msg)

Display a warning dialog with a message

Parameters

msg (str) – The message to display in the warning dialog

whatsThis(self) → str
wheelEvent(self, QWheelEvent)
width(self) → int
widthMM(self) → int
winId(self) → sip.voidptr
window(self) → QWidget
windowFilePath(self) → str
windowFlags(self) → Qt.WindowFlags
windowHandle(self) → QWindow
windowIcon(self) → QIcon
windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self) → str
windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self) → Qt.WindowModality
windowOpacity(self) → float
windowRole(self) → str
windowState(self) → Qt.WindowStates
windowTitle(self) → str
windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self) → Qt.WindowType
x(self) → int
y(self) → int
class schrodinger.ui.qt.schart.SChartView(chart, width, height, layout=None)

Bases: PyQt5.QtChart.QChartView

The View for a QChart

PADDING = 10
__init__(chart, width, height, layout=None)

Create an SChartView object

Parameters
  • chart (QtChart.QChart) – The chart for this view

  • width (int) – The recommended minimum width (pixels) of the chart

  • height (int) – The recommended minimum height (pixels) of the chart

  • layout (QtWidgets.QBoxLayout) – The layout to place this chart into

sizeHint(*args)

Overwrite the parent method to ensure a minimum height and width of the chart. Without this QCharts open at a minimum unreadable size.

See parent method for implementation details

updateHoverLabel(xval, yval, bold=False)

Update the text in the hover label

Can be overwritten in subclasses to show custom data

readjustHoverLabel()

Make sure the hover label is in the upper right corner of the view

paintEvent(*args, **kwargs)

Overwrite the parent method to make sure the hover label stays put

See parent method for implementation details

AdjustIgnored = 0
AdjustToContents = 2
AdjustToContentsOnFirstShow = 1
AnchorUnderMouse = 2
AnchorViewCenter = 1
BoundingRectViewportUpdate = 4
Box = 1
CacheBackground = 1
class CacheMode

Bases: sip.simplewrapper

QGraphicsView.CacheMode(Union[QGraphicsView.CacheMode, QGraphicsView.CacheModeFlag]) QGraphicsView.CacheMode(QGraphicsView.CacheMode)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

class CacheModeFlag

Bases: int

CacheNone = 0
DontAdjustForAntialiasing = 4
DontClipPainter = 1
DontSavePainterState = 2
class DragMode

Bases: int

DrawChildren = 2
DrawWindowBackground = 1
FullViewportUpdate = 0
HLine = 4
HorizontalRubberBand = 2
IgnoreMask = 4
MinimalViewportUpdate = 1
NoAnchor = 0
NoDrag = 0
NoFrame = 0
NoRubberBand = 0
NoViewportUpdate = 3
class OptimizationFlag

Bases: int

class OptimizationFlags

Bases: sip.simplewrapper

QGraphicsView.OptimizationFlags(Union[QGraphicsView.OptimizationFlags, QGraphicsView.OptimizationFlag]) QGraphicsView.OptimizationFlags(QGraphicsView.OptimizationFlags)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

class PaintDeviceMetric

Bases: int

Panel = 2
PdmDepth = 6
PdmDevicePixelRatio = 11
PdmDevicePixelRatioScaled = 12
PdmDpiX = 7
PdmDpiY = 8
PdmHeight = 2
PdmHeightMM = 4
PdmNumColors = 5
PdmPhysicalDpiX = 9
PdmPhysicalDpiY = 10
PdmWidth = 1
PdmWidthMM = 3
Plain = 16
Raised = 32
RectangleRubberBand = 3
class RenderFlag

Bases: int

class RenderFlags

Bases: sip.simplewrapper

QWidget.RenderFlags(Union[QWidget.RenderFlags, QWidget.RenderFlag]) QWidget.RenderFlags(QWidget.RenderFlags)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

class RubberBand

Bases: int

RubberBandDrag = 2
class RubberBands

Bases: sip.simplewrapper

QChartView.RubberBands(Union[QChartView.RubberBands, QChartView.RubberBand]) QChartView.RubberBands(QChartView.RubberBands)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

ScrollHandDrag = 1
class Shadow

Bases: int

Shadow_Mask = 240
class Shape

Bases: int

Shape_Mask = 15
class SizeAdjustPolicy

Bases: int

SmartViewportUpdate = 2
class StyleMask

Bases: int

StyledPanel = 6
Sunken = 48
VLine = 5
VerticalRubberBand = 1
class ViewportAnchor

Bases: int

class ViewportUpdateMode

Bases: int

WinPanel = 3
acceptDrops(self) → bool
accessibleDescription(self) → str
accessibleName(self) → str
actionEvent(self, QActionEvent)
actions(self) → List[QAction]
activateWindow(self)
addAction(self, QAction)
addActions(self, Iterable[QAction])
addScrollBarWidget(self, QWidget, Union[Qt.Alignment, Qt.AlignmentFlag])
adjustSize(self)
alignment(self) → Qt.Alignment
autoFillBackground(self) → bool
backgroundBrush(self) → QBrush
backgroundRole(self) → QPalette.ColorRole
baseSize(self) → QSize
blockSignals(self, bool) → bool
cacheMode(self) → QGraphicsView.CacheMode
centerOn(self, Union[QPointF, QPoint])

centerOn(self, QGraphicsItem) centerOn(self, float, float)

changeEvent(self, QEvent)
chart(self) → QChart
childAt(self, QPoint) → QWidget

childAt(self, int, int) -> QWidget

childEvent(self, QChildEvent)
children(self) → List[QObject]
childrenRect(self) → QRect
childrenRegion(self) → QRegion
clearFocus(self)
clearMask(self)
close(self) → bool
closeEvent(self, QCloseEvent)
colorCount(self) → int
connectNotify(self, QMetaMethod)
contentsMargins(self) → QMargins
contentsRect(self) → QRect
contextMenuEvent(self, QContextMenuEvent)
contextMenuPolicy(self) → Qt.ContextMenuPolicy
cornerWidget(self) → QWidget
create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)
createWindowContainer(QWindow, parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = 0) → QWidget
cursor(self) → QCursor
customContextMenuRequested

customContextMenuRequested(self, QPoint) [signal]

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

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

devType(self) → int
devicePixelRatio(self) → int
devicePixelRatioF(self) → float
devicePixelRatioFScale() → float
disconnect(self)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QDragEnterEvent)
dragLeaveEvent(self, QDragLeaveEvent)
dragMode(self) → QGraphicsView.DragMode
dragMoveEvent(self, QDragMoveEvent)
drawBackground(self, QPainter, QRectF)
drawForeground(self, QPainter, QRectF)
drawFrame(self, QPainter)
dropEvent(self, QDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveWinId(self) → sip.voidptr
ensurePolished(self)
ensureVisible(self, QRectF, xMargin: int = 50, yMargin: int = 50)

ensureVisible(self, QGraphicsItem, xMargin: int = 50, yMargin: int = 50) ensureVisible(self, float, float, float, float, xMargin: int = 50, yMargin: int = 50)

enterEvent(self, QEvent)
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
find(sip.voidptr) → QWidget
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]

findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]

fitInView(self, QRectF, mode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio)

fitInView(self, QGraphicsItem, mode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio) fitInView(self, float, float, float, float, mode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio)

focusInEvent(self, QFocusEvent)
focusNextChild(self) → bool
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPolicy(self) → Qt.FocusPolicy
focusPreviousChild(self) → bool
focusProxy(self) → QWidget
focusWidget(self) → QWidget
font(self) → QFont
fontInfo(self) → QFontInfo
fontMetrics(self) → QFontMetrics
foregroundBrush(self) → QBrush
foregroundRole(self) → QPalette.ColorRole
frameGeometry(self) → QRect
frameRect(self) → QRect
frameShadow(self) → QFrame.Shadow
frameShape(self) → QFrame.Shape
frameSize(self) → QSize
frameStyle(self) → int
frameWidth(self) → int
geometry(self) → QRect
getContentsMargins(self) → Tuple[int, int, int, int]
grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(- 1, - 1))) → QPixmap
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())
grabKeyboard(self)
grabMouse(self)

grabMouse(self, Union[QCursor, Qt.CursorShape])

grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int
graphicsEffect(self) → QGraphicsEffect
graphicsProxyWidget(self) → QGraphicsProxyWidget
hasFocus(self) → bool
hasHeightForWidth(self) → bool
hasMouseTracking(self) → bool
hasTabletTracking(self) → bool
height(self) → int
heightForWidth(self, int) → int
heightMM(self) → int
hide(self)
hideEvent(self, QHideEvent)
horizontalScrollBar(self) → QScrollBar
horizontalScrollBarPolicy(self) → Qt.ScrollBarPolicy
inherits(self, str) → bool
initPainter(self, QPainter)
initStyleOption(self, QStyleOptionFrame)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
SChartView.insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
invalidateScene(self, rect: QRectF = QRectF(), layers: Union[QGraphicsScene.SceneLayers, QGraphicsScene.SceneLayer] = QGraphicsScene.AllLayers)
isActiveWindow(self) → bool
isAncestorOf(self, QWidget) → bool
isEnabled(self) → bool
isEnabledTo(self, QWidget) → bool
isFullScreen(self) → bool
isHidden(self) → bool
isInteractive(self) → bool
isLeftToRight(self) → bool
isMaximized(self) → bool
isMinimized(self) → bool
isModal(self) → bool
isRightToLeft(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isTransformed(self) → bool
isVisible(self) → bool
isVisibleTo(self, QWidget) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowModified(self) → bool
isWindowType(self) → bool
itemAt(self, QPoint) → QGraphicsItem

itemAt(self, int, int) -> QGraphicsItem

items(self) → List[QGraphicsItem]

items(self, QPoint) -> List[QGraphicsItem] items(self, int, int) -> List[QGraphicsItem] items(self, int, int, int, int, mode: Qt.ItemSelectionMode = Qt.IntersectsItemShape) -> List[QGraphicsItem] items(self, QRect, mode: Qt.ItemSelectionMode = Qt.IntersectsItemShape) -> List[QGraphicsItem] items(self, QPolygon, mode: Qt.ItemSelectionMode = Qt.IntersectsItemShape) -> List[QGraphicsItem] items(self, QPainterPath, mode: Qt.ItemSelectionMode = Qt.IntersectsItemShape) -> List[QGraphicsItem]

keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
keyboardGrabber() → QWidget
killTimer(self, int)
layout(self) → QLayout
layoutDirection(self) → Qt.LayoutDirection
leaveEvent(self, QEvent)
lineWidth(self) → int
locale(self) → QLocale
logicalDpiX(self) → int
logicalDpiY(self) → int
lower(self)
mapFrom(self, QWidget, QPoint) → QPoint
mapFromGlobal(self, QPoint) → QPoint
mapFromParent(self, QPoint) → QPoint
mapFromScene(self, Union[QPointF, QPoint]) → QPoint

mapFromScene(self, QRectF) -> QPolygon mapFromScene(self, QPolygonF) -> QPolygon mapFromScene(self, QPainterPath) -> QPainterPath mapFromScene(self, float, float) -> QPoint mapFromScene(self, float, float, float, float) -> QPolygon

mapTo(self, QWidget, QPoint) → QPoint
mapToGlobal(self, QPoint) → QPoint
mapToParent(self, QPoint) → QPoint
mapToScene(self, QPoint) → QPointF

mapToScene(self, QRect) -> QPolygonF mapToScene(self, QPolygon) -> QPolygonF mapToScene(self, QPainterPath) -> QPainterPath mapToScene(self, int, int) -> QPointF mapToScene(self, int, int, int, int) -> QPolygonF

mask(self) → QRegion
maximumHeight(self) → int
maximumSize(self) → QSize
maximumViewportSize(self) → QSize
maximumWidth(self) → int
metaObject(self) → QMetaObject
metric(self, QPaintDevice.PaintDeviceMetric) → int
midLineWidth(self) → int
minimumHeight(self) → int
minimumSize(self) → QSize
minimumSizeHint(self) → QSize
minimumWidth(self) → int
mouseDoubleClickEvent(self, QMouseEvent)
mouseGrabber() → QWidget
mouseMoveEvent(self, QMouseEvent)
mousePressEvent(self, QMouseEvent)
mouseReleaseEvent(self, QMouseEvent)
move(self, QPoint)

move(self, int, int)

moveEvent(self, QMoveEvent)
moveToThread(self, QThread)
nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) → Tuple[bool, int]
nativeParentWidget(self) → QWidget
nextInFocusChain(self) → QWidget
normalGeometry(self) → QRect
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

optimizationFlags(self) → QGraphicsView.OptimizationFlags
overrideWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
overrideWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
paintEngine(self) → QPaintEngine
paintingActive(self) → bool
palette(self) → QPalette
parent(self) → QObject
parentWidget(self) → QWidget
physicalDpiX(self) → int
physicalDpiY(self) → int
pos(self) → QPoint
previousInFocusChain(self) → QWidget
property(self, str) → Any
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.

raise_(self)
receivers(self, PYQT_SIGNAL) → int
rect(self) → QRect
releaseKeyboard(self)
releaseMouse(self)
releaseShortcut(self, int)
removeAction(self, QAction)
removeEventFilter(self, QObject)
render(self, QPainter, target: QRectF = QRectF(), source: QRect = QRect(), mode: Qt.AspectRatioMode = Qt.KeepAspectRatio)
renderHints(self) → QPainter.RenderHints
repaint(self)

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

resetCachedContent(self)
resetTransform(self)
resize(self, QSize)

resize(self, int, int)

resizeAnchor(self) → QGraphicsView.ViewportAnchor
resizeEvent(self, QResizeEvent)
restoreGeometry(self, Union[QByteArray, bytes, bytearray]) → bool
rotate(self, float)
rubberBand(self) → QChartView.RubberBands
rubberBandChanged

rubberBandChanged(self, QRect, Union[QPointF, QPoint], Union[QPointF, QPoint]) [signal]

rubberBandRect(self) → QRect
rubberBandSelectionMode(self) → Qt.ItemSelectionMode
saveGeometry(self) → QByteArray
SChartView.scale(self, float, float)
scene(self) → QGraphicsScene
sceneRect(self) → QRectF
SChartView.scroll(self, int, int)

scroll(self, int, int, QRect)

scrollBarWidgets(self, Union[Qt.Alignment, Qt.AlignmentFlag]) → List[QWidget]
SChartView.scrollContentsBy(self, int, int)
sender(self) → QObject
senderSignalIndex(self) → int
setAcceptDrops(self, bool)
setAccessibleDescription(self, str)
setAccessibleName(self, str)
setAlignment(self, Union[Qt.Alignment, Qt.AlignmentFlag])
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setBackgroundBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
setBackgroundRole(self, QPalette.ColorRole)
SChartView.setBaseSize(self, int, int)

setBaseSize(self, QSize)

setCacheMode(self, Union[QGraphicsView.CacheMode, QGraphicsView.CacheModeFlag])
setChart(self, QChart)
SChartView.setContentsMargins(self, int, int, int, int)

setContentsMargins(self, QMargins)

setContextMenuPolicy(self, Qt.ContextMenuPolicy)
setCornerWidget(self, QWidget)
setCursor(self, Union[QCursor, Qt.CursorShape])
setDisabled(self, bool)
setDragMode(self, QGraphicsView.DragMode)
setEnabled(self, bool)
setFixedHeight(self, int)
setFixedSize(self, QSize)

setFixedSize(self, int, int)

setFixedWidth(self, int)
setFocus(self)

setFocus(self, Qt.FocusReason)

setFocusPolicy(self, Qt.FocusPolicy)
setFocusProxy(self, QWidget)
setFont(self, QFont)
setForegroundBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
setForegroundRole(self, QPalette.ColorRole)
setFrameRect(self, QRect)
setFrameShadow(self, QFrame.Shadow)
setFrameShape(self, QFrame.Shape)
setFrameStyle(self, int)
setGeometry(self, QRect)

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

setGraphicsEffect(self, QGraphicsEffect)
setHidden(self, bool)
setHorizontalScrollBar(self, QScrollBar)
setHorizontalScrollBarPolicy(self, Qt.ScrollBarPolicy)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setInteractive(self, bool)
setLayout(self, QLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLineWidth(self, int)
setLocale(self, QLocale)
setMask(self, QBitmap)

setMask(self, QRegion)

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

setMaximumSize(self, QSize)

setMaximumWidth(self, int)
setMidLineWidth(self, int)
setMinimumHeight(self, int)
SChartView.setMinimumSize(self, int, int)

setMinimumSize(self, QSize)

setMinimumWidth(self, int)
setMouseTracking(self, bool)
setObjectName(self, str)
setOptimizationFlag(self, QGraphicsView.OptimizationFlag, enabled: bool = True)
setOptimizationFlags(self, Union[QGraphicsView.OptimizationFlags, QGraphicsView.OptimizationFlag])
setPalette(self, QPalette)
setParent(self, QWidget)

setParent(self, QWidget, Union[Qt.WindowFlags, Qt.WindowType])

setProperty(self, str, Any) → bool
setRenderHint(self, QPainter.RenderHint, on: bool = True)
setRenderHints(self, Union[QPainter.RenderHints, QPainter.RenderHint])
setResizeAnchor(self, QGraphicsView.ViewportAnchor)
setRubberBand(self, Union[QChartView.RubberBands, QChartView.RubberBand])
setRubberBandSelectionMode(self, Qt.ItemSelectionMode)
setScene(self, QGraphicsScene)
setSceneRect(self, QRectF)

setSceneRect(self, float, float, float, float)

setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizeAdjustPolicy(self, QAbstractScrollArea.SizeAdjustPolicy)
SChartView.setSizeIncrement(self, int, int)

setSizeIncrement(self, QSize)

setSizePolicy(self, QSizePolicy)

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

setStatusTip(self, str)
setStyle(self, QStyle)
setStyleSheet(self, str)
SChartView.setTabOrder(QWidget, QWidget)
setTabletTracking(self, bool)
setToolTip(self, str)
setToolTipDuration(self, int)
setTransform(self, QTransform, combine: bool = False)
setTransformationAnchor(self, QGraphicsView.ViewportAnchor)
setUpdatesEnabled(self, bool)
setVerticalScrollBar(self, QScrollBar)
setVerticalScrollBarPolicy(self, Qt.ScrollBarPolicy)
setViewport(self, QWidget)
SChartView.setViewportMargins(self, int, int, int, int)

setViewportMargins(self, QMargins)

setViewportUpdateMode(self, QGraphicsView.ViewportUpdateMode)
setVisible(self, bool)
setWhatsThis(self, str)
setWindowFilePath(self, str)
setWindowFlag(self, Qt.WindowType, on: bool = True)
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
setWindowIcon(self, QIcon)
setWindowIconText(self, str)
setWindowModality(self, Qt.WindowModality)
setWindowModified(self, bool)
setWindowOpacity(self, float)
setWindowRole(self, str)
setWindowState(self, Union[Qt.WindowStates, Qt.WindowState])
setWindowTitle(self, str)
setupViewport(self, QWidget)
sharedPainter(self) → QPainter
SChartView.shear(self, float, float)
show(self)
showEvent(self, QShowEvent)
showFullScreen(self)
showMaximized(self)
showMinimized(self)
showNormal(self)
signalsBlocked(self) → bool
size(self) → QSize
sizeAdjustPolicy(self) → QAbstractScrollArea.SizeAdjustPolicy
sizeIncrement(self) → QSize
sizePolicy(self) → QSizePolicy
stackUnder(self, QWidget)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
statusTip(self) → str
style(self) → QStyle
styleSheet(self) → str
tabletEvent(self, QTabletEvent)
testAttribute(self, Qt.WidgetAttribute) → bool
thread(self) → QThread
timerEvent(self, QTimerEvent)
toolTip(self) → str
toolTipDuration(self) → int
tr(self, str, disambiguation: str = None, n: int = - 1) → str
transform(self) → QTransform
transformationAnchor(self) → QGraphicsView.ViewportAnchor
SChartView.translate(self, float, float)
underMouse(self) → bool
ungrabGesture(self, Qt.GestureType)
unsetCursor(self)
unsetLayoutDirection(self)
unsetLocale(self)
update(self)

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

updateGeometry(self)
updateMicroFocus(self)
updateScene(self, Iterable[QRectF])
updateSceneRect(self, QRectF)
updatesEnabled(self) → bool
verticalScrollBar(self) → QScrollBar
verticalScrollBarPolicy(self) → Qt.ScrollBarPolicy
viewport(self) → QWidget
viewportEvent(self, QEvent) → bool
viewportMargins(self) → QMargins
viewportSizeHint(self) → QSize
viewportTransform(self) → QTransform
viewportUpdateMode(self) → QGraphicsView.ViewportUpdateMode
visibleRegion(self) → QRegion
whatsThis(self) → str
wheelEvent(self, QWheelEvent)
width(self) → int
widthMM(self) → int
winId(self) → sip.voidptr
window(self) → QWidget
windowFilePath(self) → str
windowFlags(self) → Qt.WindowFlags
windowHandle(self) → QWindow
windowIcon(self) → QIcon
windowIconChanged

windowIconChanged(self, QIcon) [signal]

windowIconText(self) → str
windowIconTextChanged

windowIconTextChanged(self, str) [signal]

windowModality(self) → Qt.WindowModality
windowOpacity(self) → float
windowRole(self) → str
windowState(self) → Qt.WindowStates
windowTitle(self) → str
windowTitleChanged

windowTitleChanged(self, str) [signal]

windowType(self) → Qt.WindowType
x(self) → int
y(self) → int
class schrodinger.ui.qt.schart.SHistogramBarSeries(*args, **kwargs)

Bases: PyQt5.QtChart.QBarSeries

A QBarSeries with additional functionality for histograms

__init__(*args, **kwargs)

See parent class for documentation

setEdges(edges)

Set the edges (the bin boundaries). Since the bins occur between the edges, there will be one more edge than there is bins

Parameters

edges (list or numpy.array) – The bin edges. The first bin appears between edges[0] and edges[1], the last bin appears between edges[-2] and edges[-1]

getEdges()

Get the edges (the bin boundaries). Since the bins occur between the edges, there will be one more edge than there is bins

Return type

list or numpy.array

Returns

The bin edges. The first bin appears between edges[0] and edges[1], the last bin appears between edges[-2] and edges[-1]

hasEdges()

Check if this series has edges set yet or not

Return type

bool

Returns

Whether edges are set for this series or not

updateHistograms(bin_settings)

Update all the histograms in this series based on the bin setting

Parameters

bin_settings (str, int or list) – This is passed to the numpy.histogram method or the user’s supplied histogram method as the bins parameter. May be a string such as SChart.AUTO to indicate how the bins are to be determined. May be an integer to give the total number of bins, or may be a list of bin edge values.

updateAxes()

Update the plot axes based on the current histograms

LabelsCenter = 0
LabelsInsideBase = 2
LabelsInsideEnd = 1
LabelsOutsideEnd = 3
class LabelsPosition

Bases: int

class SeriesType

Bases: int

SeriesTypeArea = 1
SeriesTypeBar = 2
SeriesTypeBoxPlot = 11
SeriesTypeCandlestick = 12
SeriesTypeHorizontalBar = 8
SeriesTypeHorizontalPercentBar = 10
SeriesTypeHorizontalStackedBar = 9
SeriesTypeLine = 0
SeriesTypePercentBar = 4
SeriesTypePie = 5
SeriesTypeScatter = 6
SeriesTypeSpline = 7
SeriesTypeStackedBar = 3
__len__()

Return len(self).

append(self, QBarSet) → bool

append(self, Iterable[QBarSet]) -> bool

attachAxis(self, QAbstractAxis) → bool
attachedAxes(self) → List[QAbstractAxis]
barSets(self) → List[QBarSet]
barWidth(self) → float
barsetsAdded

barsetsAdded(self, Iterable[QBarSet]) [signal]

barsetsRemoved

barsetsRemoved(self, Iterable[QBarSet]) [signal]

blockSignals(self, bool) → bool
chart(self) → QChart
childEvent(self, QChildEvent)
children(self) → List[QObject]
clear(self)
clicked

clicked(self, int, QBarSet) [signal]

connectNotify(self, QMetaMethod)
count(self) → int
countChanged

countChanged(self) [signal]

customEvent(self, QEvent)
deleteLater(self)
destroyed

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

detachAxis(self, QAbstractAxis) → bool
disconnect(self)
disconnectNotify(self, QMetaMethod)
doubleClicked

doubleClicked(self, int, QBarSet) [signal]

dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]

findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]

hide(self)
hovered

hovered(self, bool, int, QBarSet) [signal]

inherits(self, str) → bool
insert(self, int, QBarSet) → bool
installEventFilter(self, QObject)
isLabelsVisible(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isVisible(self) → bool
isWidgetType(self) → bool
isWindowType(self) → bool
killTimer(self, int)
labelsAngle(self) → float
labelsAngleChanged

labelsAngleChanged(self, float) [signal]

labelsFormat(self) → str
labelsFormatChanged

labelsFormatChanged(self, str) [signal]

labelsPosition(self) → QAbstractBarSeries.LabelsPosition
labelsPositionChanged

labelsPositionChanged(self, QAbstractBarSeries.LabelsPosition) [signal]

labelsPrecision(self) → int
labelsPrecisionChanged

labelsPrecisionChanged(self, int) [signal]

labelsVisibleChanged

labelsVisibleChanged(self) [signal]

metaObject(self) → QMetaObject
moveToThread(self, QThread)
name(self) → str
nameChanged

nameChanged(self) [signal]

objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

opacity(self) → float
opacityChanged

opacityChanged(self) [signal]

parent(self) → QObject
pressed

pressed(self, int, QBarSet) [signal]

property(self, str) → Any
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.

receivers(self, PYQT_SIGNAL) → int
released

released(self, int, QBarSet) [signal]

remove(self, QBarSet) → bool
removeEventFilter(self, QObject)
sender(self) → QObject
senderSignalIndex(self) → int
setBarWidth(self, float)
setLabelsAngle(self, float)
setLabelsFormat(self, str)
setLabelsPosition(self, QAbstractBarSeries.LabelsPosition)
setLabelsPrecision(self, int)
setLabelsVisible(self, visible: bool = True)
setName(self, str)
setObjectName(self, str)
setOpacity(self, float)
setParent(self, QObject)
setProperty(self, str, Any) → bool
setUseOpenGL(self, enable: bool = True)
setVisible(self, visible: bool = True)
show(self)
signalsBlocked(self) → bool
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
take(self, QBarSet) → bool
thread(self) → QThread
timerEvent(self, QTimerEvent)
tr(self, str, disambiguation: str = None, n: int = - 1) → str
type(self) → QAbstractSeries.SeriesType
useOpenGL(self) → bool
useOpenGLChanged

useOpenGLChanged(self) [signal]

visibleChanged

visibleChanged(self) [signal]

class schrodinger.ui.qt.schart.SHistogramBarSet(data, name, series, fitter=<function histogram>)

Bases: PyQt5.QtChart.QBarSet

A QBarSet with additional functionality for histograms

__init__(data, name, series, fitter=<function histogram>)

Create an SHistogramBarSet instance

Parameters
  • data (list) – If fitter is not None, data is the values that the fitter will compute the histogram from. If fitter is None, data is the pre-computed histogram values

  • name (str) – The name of this histogram set

  • series (SHistogramBarSeries) – The series this barset is part of

  • fitter (callable) – The function used to fit the histogram. By default it is the numpy.histogram function. Any user-supplied function should have the same api. Use None to indicate that the list of values in data are the precomputed histogram values and should not be recomputed.

fixLegend(legend)

Fix the legend marker shapes for this bar set

Parameters

legend (QLegend) – The legend containing markers for this set

updateHistogram(bin_settings)

Update the histogram based on the current bin settings

Parameters

bin_settings (str, int or list) – This is passed to the numpy.histogram method or the user’s supplied histogram method as the bins parameter. May be a string such as SChart.AUTO to indicate how the bins are to be determined. May be an integer to give the total number of bins, or may be a list of bin edge values.

Return type

(numpy.array, numpy.array)

Returns

The first array is the list of values, one for each bin of the histogram. The second array is the bin ediges. There is one more edge than bin.

__len__()

Return len(self).

append(self, float)

append(self, Iterable[float])

at(self, int) → float
blockSignals(self, bool) → bool
borderColor(self) → QColor
borderColorChanged

borderColorChanged(self, Union[QColor, Qt.GlobalColor, QGradient]) [signal]

brush(self) → QBrush
brushChanged

brushChanged(self) [signal]

childEvent(self, QChildEvent)
children(self) → List[QObject]
clicked

clicked(self, int) [signal]

color(self) → QColor
colorChanged

colorChanged(self, Union[QColor, Qt.GlobalColor, QGradient]) [signal]

connectNotify(self, QMetaMethod)
count(self) → int
customEvent(self, QEvent)
deleteLater(self)
destroyed

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

disconnect(self)
disconnectNotify(self, QMetaMethod)
doubleClicked

doubleClicked(self, int) [signal]

dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]

findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]

hovered

hovered(self, bool, int) [signal]

inherits(self, str) → bool
insert(self, int, float)
installEventFilter(self, QObject)
isSignalConnected(self, QMetaMethod) → bool
isWidgetType(self) → bool
isWindowType(self) → bool
killTimer(self, int)
label(self) → str
labelBrush(self) → QBrush
labelBrushChanged

labelBrushChanged(self) [signal]

labelChanged

labelChanged(self) [signal]

labelColor(self) → QColor
labelColorChanged

labelColorChanged(self, Union[QColor, Qt.GlobalColor, QGradient]) [signal]

labelFont(self) → QFont
labelFontChanged

labelFontChanged(self) [signal]

metaObject(self) → QMetaObject
moveToThread(self, QThread)
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

parent(self) → QObject
pen(self) → QPen
penChanged

penChanged(self) [signal]

pressed

pressed(self, int) [signal]

property(self, str) → Any
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.

receivers(self, PYQT_SIGNAL) → int
released

released(self, int) [signal]

remove(self, int, count: int = 1)
removeEventFilter(self, QObject)
replace(self, int, float)
sender(self) → QObject
senderSignalIndex(self) → int
setBorderColor(self, Union[QColor, Qt.GlobalColor, QGradient])
setBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
setColor(self, Union[QColor, Qt.GlobalColor, QGradient])
setLabel(self, str)
setLabelBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
setLabelColor(self, Union[QColor, Qt.GlobalColor, QGradient])
setLabelFont(self, QFont)
setObjectName(self, str)
setParent(self, QObject)
setPen(self, Union[QPen, QColor, Qt.GlobalColor, QGradient])
setProperty(self, str, Any) → bool
signalsBlocked(self) → bool
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
sum(self) → float
thread(self) → QThread
timerEvent(self, QTimerEvent)
tr(self, str, disambiguation: str = None, n: int = - 1) → str
valueChanged

valueChanged(self, int) [signal]

valuesAdded

valuesAdded(self, int, int) [signal]

valuesRemoved

valuesRemoved(self, int, int) [signal]

class schrodinger.ui.qt.schart.SChart(master=None, title='', xlog=None, ylog=None, xtitle='', ytitle='', width=400, height=400, legend='right', tracker=True, tools=('zoom_in', 'axes', 'series', 'copy', 'legend'), colors=(9, 7, 14, <PyQt5.QtGui.QColor object>, 10, 11, 18, 15, 8, 13, 5, 16, 17, 12), viewclass=<class 'schrodinger.ui.qt.schart.SChartView'>, layout=None)

Bases: PyQt5.QtChart.QChart

A customized implementation of the QChart class

LINE = 'line'
SCATTER = 'scatter'
RIGHT = 'right'
LEFT = 'left'
BOTTOM = 'bottom'
TOP = 'top'
ALIGNMENTS = {'bottom': 64, 'left': 1, 'right': 2, 'top': 32}
ZOOM = 'zoom_in'
AXES = 'axes'
SERIES = 'series'
COPY = 'copy'
LEGEND = 'legend'
BINS = 'bins'
DEFAULT_TOOLS = ['zoom_in', 'axes', 'series', 'copy', 'legend']
VALUE = 'value'
LOG = 'log'
CATEGORY = 'category'
BASE_10 = 10
AUTO = 'auto'
DEFAULT_AXIS_BUFFER_PCT = 10.0
DEFAULT_AXIS_FONT_SIZE = 0
DEFAULT_CATEGORY_LABEL_ANGLE = -60
DEFAULT_NONCATEGORY_LABEL_ANGLE = 0
COLORS = (9, 7, 14, <PyQt5.QtGui.QColor object>, 10, 11, 18, 15, 8, 13, 5, 16, 17, 12)
__init__(master=None, title='', xlog=None, ylog=None, xtitle='', ytitle='', width=400, height=400, legend='right', tracker=True, tools=('zoom_in', 'axes', 'series', 'copy', 'legend'), colors=(9, 7, 14, <PyQt5.QtGui.QColor object>, 10, 11, 18, 15, 8, 13, 5, 16, 17, 12), viewclass=<class 'schrodinger.ui.qt.schart.SChartView'>, layout=None)

Create an SChart object

Parameters
  • master (QtWidgets.QWidget) – A QWidget - required for parenting dialogs

  • title (str) – The chart title

  • xlog (int) – The log base of the X axis (None for a non-log axis)

  • ylog (int) – The log base of the Y axis (None for a non-log axis)

  • xtitle (str) – The title of the X axis

  • ytitle (str) – The title of the Y axis

  • width (int) – The recommended minimum width (pixels) of the chart

  • height (int) – The recommended minimum height (pixels) of the chart

  • legend (str or None) – The alignment of the legend relative to the chart (one of the class legend side constants TOP, BOTTOM, RIGHT, LEFT), or None to not show the legend

  • tracker (bool) – Whether to show the label in the upper right corner that tracks the mouse coordinates

  • tools (tuple of str) – The tools to include in the toolbar - should be a tuple of class tools constants.

  • colors (list or None) – A list of colors to use when adding series without specifying the color explicitly. Use None to get the default QChart color cycle, which has 5 colors in the default theme and cycles repeatedly through them without noting which colors currently exist on the chart - leading often to multiple series with the same colors in dynamic charts. With colors specified, an attempt is made to reuse colors early in the list if no current series has that color, and no existing color is reused - instead a random color will be generated if all colors current exist on the chart.

  • viewclass (class or None) – The view class (not object) for this chart - typically a subclass of SChartView

  • layout (QtWidgets.QBoxLayout) – The layout to place this chart into

setupToolBar(layout)

Create the toolbar

Parameters

layout (QtWidgets.QBoxLayout) – The layout to place this toolbar into

getChartImage()

Get the chart image

Return type

QtGui.QImage

Returns

The chart image as a QImage

copyToClipboard()

Copy the chart image to the clipboard

exportImage(file_path)

Export the chart image to a file

Parameters

file_path (str) – The path to export the image to

Return type

bool

Returns

True if exported, False if export failed

openBinsDialog()

Open the dialog that allows the user to modify the histogram bins

getNextColor()

Get the next color to use for plotting a series. Colors at the beginning of the list will be reused if no series with that color currently exists. If all available colors are currently used, a random color will be generated.

Return type

QtGui.QColor or None

Returns

The next color to use for plotting, or None if there is no color list defined

static setSeriesSize(series, size)

Set the size for this series. This is marker size for scatter plots or thickness for line plots.

Parameters
  • series (QtChart.QAbstractSeres) – The series to modify

  • size (int) – The size for the series

Raises

RuntimeError – If the series is not scatter or line

openSeriesDialog()

Open the dialog that allows user control of series parameters

openAxesDialog()

Open the dialog that allows user control of axis parameters

resetAxisLabels()

Reset axis labels’ angle and font size

resetView()

Unzoom the plot and reset the axes parameters if necessary

showLegend(show)

Set the legend visibility

Parameters

show (bool) – The legend visibility

hoverMoveEvent(event)

Catch the mouse moving in the chart and update the hover tracking label with its coordinates

Parameters

event (QtGui.QHoverEvent) – The event object

addSeries(series)

Add the series to the chart

Note

This function changes the color of black series to a theme color - this is done automatically by QtChart when adding a series

Parameters

series (QtChart.QAbstractSeries) – The series to add to the chart

static changeAxisFontSize(axis, labels=0, title=0)

Change the font sizes for the axis

Parameters
  • axis (QAbstractAxis) – The axis

  • labels (int) – The font size for labels

  • title (int) – The font size for the title

static isLogAxis(axis)

Check if this axis is a log axis

Return type

bool

Returns

Whether the axis is log or not

static isValueAxis(axis)

Check if this axis is a value axis

Return type

bool

Returns

Whether the axis is value or not

toggleLogAxis(old_axis, base=10)

Change a linear axis to log, or vise versa

Parameters
  • old_axis (QAbstractAxis) – The axis to change

  • base (int) – The log base if changing to a log axis

Return type

QAbstractAxis

Returns

The new axis

Raises

RuntimeError – if old_axis is not a QLogValueAxis or QValueAxis

createAxis(side, title, log=10, unique=True, atype='value')

Create an axis on one side of the chart. Note that if an axis in that direction already exists, there will be multiple axes in that direction.

Parameters
  • side (str) – A side class constant giving the side of the chart the axis will be on

  • title (str) – The label for the axis

  • log (int) – The log base of the axis if a log axis is requested

  • unique (bool) – If True, remove any existing axis on this side. Any series attached to a removed axis must be manually attached to a new axis.

  • atype (str) – The type of axis. Should be a class axis type constant

Return type

QtChart.QAbstractAxis

Returns

The axis that was created

setXMinMax(minimum=None, maximum=None, side='bottom')

Set the min and max values of the x axis

Parameters
  • minimum (float) – The minimum value of the axis

  • maximum (float) – The maximum value of the axis

  • side (str) – The side of the plot the desired axis is attached to. Must be a class side constant.

setYMinMax(minimum=None, maximum=None, side='left')

Set the min and max values of the y axis

Parameters
  • minimum (float) – The minimum value of the axis

  • maximum (float) – The maximum value of the axis

  • side (str) – The side of the plot the desired axis is attached to Must be a class side constant.

setAxisMinMax(axis, minimum, maximum)

Set the min and max values of an axis

Parameters
  • axis (QtChart.QAbstractAxis) – The axis to set.

  • minimum (float) – The minimum value of the axis

  • maximum (float) – The maximum value of the axis

setXAutoRange(buffer=0, buffer_pct=10.0, side='bottom')

Automatically set the x axis range based on the min and max values of the plotted data

Parameters
  • buffer (float) – Additional absolute amount to increase the axis range beyond the min and max plotted values (0 will truncate the axis at exactly the min and max values)

  • buffer_pct (float) – Additional percent amount to increase the axis range beyond the min and max plotted values. The percent is computed of the entire range and then applied to both the low and high end of the axis.

  • side (str) – The side of the plot the desired axis is attached to Must be a class side constant.

setYAutoRange(buffer=0, buffer_pct=10.0, side='left')

Automatically set the y axis range based on the min and max values of the plotted data

Parameters
  • buffer (float) – Additional absolute amount to increase the axis range beyond the min and max plotted values (0 will truncate the axis at exactly the min and max values)

  • buffer_pct (float) – Additional percent amount to increase the axis range beyond the min and max plotted values. The percent is computed of the entire range and then applied to both the low and high end of the axis.

  • side (str) – The side of the plot the desired axis is attached to Must be a class side constant.

static getAxisDataRange(axis, series)

Find the range of data attached to the given axis

Parameters
  • axis (QtChart.QAbstractAxis) – The axis

  • series (list) – The current list of data series

Return type

float, float

Returns

The min and max data values. numpy.inf is returned if there is no associated data

setAxisAutoRange(axis, buffer=0, buffer_pct=10.0)

Automatically set the y axis range based on the min and max values of the plotted data

Parameters
  • axis (QtChart.QAbstractAxis) – The axis to set.

  • buffer (float) – Additional absolute amount to increase the axis range beyond the min and max plotted values (0 will truncate the axis at exactly the min and max values)

  • buffer_pct (float) – Additional percent amount to increase the axis range beyond the min and max plotted values. The percent is computed of the entire range and then applied to both the low and high end of the axis.

warning(msg, **kwargs)

Pop up a warning dialog with the given message

Parameters

msg (str) – The message to display

getSideAxis(side)

Get the axis associated with the given side of the chart. If more than one axis is associated with that side, the first one is returned.

Parameters

side (str) – The side of the plot the desired axis is attached to. Must be a class side constant.

Return type

QtChart.QAbstractAxis

Returns

The axis attached to this side of the chart

Raises
  • KeyError – if side is not a valid constant

  • ValueError – If no such axis exists

static getSeriesXVals(series)

Get the x values for a series

Parameters

series (QtChart.QXYSeries) – The series to get data from

Return type

list

Returns

The x values of all points in the series

Raises

ValueError – if series is not a supported type

static getSeriesYVals(series)

Get the y values for a series. Note that for bar series, ALL the y values of all the bar sets are returned as a single list.

Parameters

series (QtChart.QAbstractSeries) – The series to get data from. Only QXYSeries and QBarSeries are currently supported

Return type

list

Returns

The y values of all points in the series

Raises

ValueError – if series is not a supported type

AllAnimations = 3
class AnimationOption

Bases: int

class AnimationOptions

Bases: sip.simplewrapper

QChart.AnimationOptions(Union[QChart.AnimationOptions, QChart.AnimationOption]) QChart.AnimationOptions(QChart.AnimationOptions)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

class CacheMode

Bases: int

class ChartTheme

Bases: int

ChartThemeBlueCerulean = 1
ChartThemeBlueIcy = 6
ChartThemeBlueNcs = 4
ChartThemeBrownSand = 3
ChartThemeDark = 2
ChartThemeHighContrast = 5
ChartThemeLight = 0
ChartThemeQt = 7
class ChartType

Bases: int

ChartTypeCartesian = 1
ChartTypePolar = 2
ChartTypeUndefined = 0
DeviceCoordinateCache = 2
class GraphicsItemChange

Bases: int

class GraphicsItemFlag

Bases: int

class GraphicsItemFlags

Bases: sip.simplewrapper

QGraphicsItem.GraphicsItemFlags(Union[QGraphicsItem.GraphicsItemFlags, QGraphicsItem.GraphicsItemFlag]) QGraphicsItem.GraphicsItemFlags(QGraphicsItem.GraphicsItemFlags)

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

GridAxisAnimations = 1
ItemAcceptsInputMethod = 4096
ItemChildAddedChange = 6
ItemChildRemovedChange = 7
ItemClipsChildrenToShape = 16
ItemClipsToShape = 8
ItemContainsChildrenInShape = 524288
ItemCoordinateCache = 1
ItemCursorChange = 17
ItemCursorHasChanged = 18
ItemDoesntPropagateOpacityToChildren = 128
ItemEnabledChange = 3
ItemEnabledHasChanged = 13
ItemFlagsChange = 21
ItemFlagsHaveChanged = 22
ItemHasNoContents = 1024
ItemIgnoresParentOpacity = 64
ItemIgnoresTransformations = 32
ItemIsFocusable = 4
ItemIsMovable = 1
ItemIsPanel = 16384
ItemIsSelectable = 2
ItemMatrixChange = 1
ItemNegativeZStacksBehindParent = 8192
ItemOpacityChange = 25
ItemOpacityHasChanged = 26
ItemParentChange = 5
ItemParentHasChanged = 15
ItemPositionChange = 0
ItemPositionHasChanged = 9
ItemRotationChange = 28
ItemRotationHasChanged = 29
ItemScaleChange = 30
ItemScaleHasChanged = 31
ItemSceneChange = 11
ItemSceneHasChanged = 16
ItemScenePositionHasChanged = 27
ItemSelectedChange = 4
ItemSelectedHasChanged = 14
ItemSendsGeometryChanges = 2048
ItemSendsScenePositionChanges = 65536
ItemStacksBehindParent = 256
ItemToolTipChange = 19
ItemToolTipHasChanged = 20
ItemTransformChange = 8
ItemTransformHasChanged = 10
ItemTransformOriginPointChange = 32
ItemTransformOriginPointHasChanged = 33
ItemUsesExtendedStyleOption = 512
ItemVisibleChange = 2
ItemVisibleHasChanged = 12
ItemZValueChange = 23
ItemZValueHasChanged = 24
NoAnimation = 0
NoCache = 0
NonModal = 0
PanelModal = 1
class PanelModality

Bases: int

SceneModal = 2
SeriesAnimations = 2
Type = 1
UserType = 65536
acceptDrops(self) → bool
acceptHoverEvents(self) → bool
acceptTouchEvents(self) → bool
acceptedMouseButtons(self) → Qt.MouseButtons
actions(self) → List[QAction]
addAction(self, QAction)
addActions(self, Iterable[QAction])
addAxis(self, QAbstractAxis, Union[Qt.Alignment, Qt.AlignmentFlag])
addDataSeries(name, xvals, yvals=None, series_type=None, color=None, shape=None, size=None, legend=True, autorange=True, fit=False, fitter=None, xside='bottom', yside='left')

Add a new data series to the chart

Parameters
  • name (str) – The name of the series - this will be the name of the series shown in the legend

  • xvals (list of float or list of tuple) – Either a list of x data, or a list of (x, y) tuples

  • yvals (list) – List of y data if xvals is not (x, y) tuples

  • series_type (str) – The series type - must be a class series type constant

  • color (QtGui.QColor or Qt.GlobalColor constant or None) – The color for this series. If None, a color from the current color list will be used.

  • shape (QtChart.QScatterSeries.MarkerShape) – For scatter series, the shape of the markers

  • size (int) – For scatter series, the size of the markers. For line series, the thickness of the line.

  • legend (bool) – Whether the series should show in the legend

  • autorange (bool) – Whether to auto-set the axes ranges after adding this series

  • fit (bool) – Whether to add a trendline to the series

  • fitter (callable) – A function to call to fit the trendline. Must follow the API of the fitLine method

  • xside (str) – The X axis side to attach the series to. Should be either BOTTOM or TOP

  • yside (str) – The Y axis side to attach the series to. Should be either LEFT or RIGHT

Return type

SeriesData

Returns

The newly created series will be in the SeriesData.series property. If a trendline is added, data about the trendline will also be included.

adjustSize(self)
advance(self, int)
animationDuration(self) → int
animationEasingCurve(self) → QEasingCurve
animationOptions(self) → QChart.AnimationOptions
autoFillBackground(self) → bool
axes(self, orientation: Union[Qt.Orientations, Qt.Orientation] = Qt.Horizontal | Qt.Vertical, series: QAbstractSeries = None) → List[QAbstractAxis]
axisX(self, series: QAbstractSeries = None) → QAbstractAxis
axisY(self, series: QAbstractSeries = None) → QAbstractAxis
backgroundBrush(self) → QBrush
backgroundPen(self) → QPen
backgroundRoundness(self) → float
blockSignals(self, bool) → bool
boundingRect(self) → QRectF
boundingRegion(self, QTransform) → QRegion
boundingRegionGranularity(self) → float
cacheMode(self) → QGraphicsItem.CacheMode
changeEvent(self, QEvent)
chartType(self) → QChart.ChartType
childEvent(self, QChildEvent)
childItems(self) → List[QGraphicsItem]
children(self) → List[QObject]
childrenBoundingRect(self) → QRectF
clearFocus(self)
clipPath(self) → QPainterPath
close(self) → bool
closeEvent(self, QCloseEvent)
collidesWithItem(self, QGraphicsItem, mode: Qt.ItemSelectionMode = Qt.IntersectsItemShape) → bool
collidesWithPath(self, QPainterPath, mode: Qt.ItemSelectionMode = Qt.IntersectsItemShape) → bool
collidingItems(self, mode: Qt.ItemSelectionMode = Qt.IntersectsItemShape) → List[QGraphicsItem]
commonAncestorItem(self, QGraphicsItem) → QGraphicsItem
connectNotify(self, QMetaMethod)
contains(self, Union[QPointF, QPoint]) → bool
contentsRect(self) → QRectF
contextMenuEvent(self, QGraphicsSceneContextMenuEvent)
createDefaultAxes(self)
cursor(self) → QCursor
customEvent(self, QEvent)
data(self, int) → Any
deleteLater(self)
destroyed

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

deviceTransform(self, QTransform) → QTransform
disconnect(self)
disconnectNotify(self, QMetaMethod)
dragEnterEvent(self, QGraphicsSceneDragDropEvent)
dragLeaveEvent(self, QGraphicsSceneDragDropEvent)
dragMoveEvent(self, QGraphicsSceneDragDropEvent)
dropEvent(self, QGraphicsSceneDragDropEvent)
dumpObjectInfo(self)
dumpObjectTree(self)
dynamicPropertyNames(self) → List[QByteArray]
effectiveOpacity(self) → float
effectiveSizeHint(self, Qt.SizeHint, constraint: QSizeF = QSizeF()) → QSizeF
enabledChanged

enabledChanged(self) [signal]

ensureVisible(self, rect: QRectF = QRectF(), xMargin: int = 50, yMargin: int = 50)

ensureVisible(self, float, float, float, float, xMargin: int = 50, yMargin: int = 50)

event(self, QEvent) → bool
eventFilter(self, QObject, QEvent) → bool
filtersChildEvents(self) → bool
findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → QObject

findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject

findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) → List[QObject]

findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]

flags(self) → QGraphicsItem.GraphicsItemFlags
focusInEvent(self, QFocusEvent)
focusItem(self) → QGraphicsItem
focusNextPrevChild(self, bool) → bool
focusOutEvent(self, QFocusEvent)
focusPolicy(self) → Qt.FocusPolicy
focusProxy(self) → QGraphicsItem
focusWidget(self) → QGraphicsWidget
font(self) → QFont
geometry(self) → QRectF
geometryChanged

geometryChanged(self) [signal]

getContentsMargins(self) → Tuple[float, float, float, float]
getWindowFrameMargins(self) → Tuple[float, float, float, float]
grabGesture(self, Qt.GestureType, flags: Union[Qt.GestureFlags, Qt.GestureFlag] = Qt.GestureFlags())
grabKeyboard(self)
grabKeyboardEvent(self, QEvent)
grabMouse(self)
grabMouseEvent(self, QEvent)
grabShortcut(self, Union[QKeySequence, QKeySequence.StandardKey, str, int], context: Qt.ShortcutContext = Qt.WindowShortcut) → int
graphicsEffect(self) → QGraphicsEffect
graphicsItem(self) → QGraphicsItem
group(self) → QGraphicsItemGroup
hasCursor(self) → bool
hasFocus(self) → bool
hide(self)
hideEvent(self, QHideEvent)
hoverEnterEvent(self, QGraphicsSceneHoverEvent)
hoverLeaveEvent(self, QGraphicsSceneHoverEvent)
inherits(self, str) → bool
initStyleOption(self, QStyleOption)
inputMethodEvent(self, QInputMethodEvent)
inputMethodHints(self) → Qt.InputMethodHints
inputMethodQuery(self, Qt.InputMethodQuery) → Any
SChart.insertAction(self, QAction, QAction)
insertActions(self, QAction, Iterable[QAction])
installEventFilter(self, QObject)
installSceneEventFilter(self, QGraphicsItem)
isActive(self) → bool
isActiveWindow(self) → bool
isAncestorOf(self, QGraphicsItem) → bool
isBackgroundVisible(self) → bool
isBlockedByModalPanel(self) → Tuple[bool, QGraphicsItem]
isClipped(self) → bool
isDropShadowEnabled(self) → bool
isEnabled(self) → bool
isLayout(self) → bool
isObscured(self, rect: QRectF = QRectF()) → bool

isObscured(self, float, float, float, float) -> bool

isObscuredBy(self, QGraphicsItem) → bool
isPanel(self) → bool
isPlotAreaBackgroundVisible(self) → bool
isSelected(self) → bool
isSignalConnected(self, QMetaMethod) → bool
isUnderMouse(self) → bool
isVisible(self) → bool
isVisibleTo(self, QGraphicsItem) → bool
isWidget(self) → bool
isWidgetType(self) → bool
isWindow(self) → bool
isWindowType(self) → bool
isZoomed(self) → bool
itemChange(self, QGraphicsItem.GraphicsItemChange, Any) → Any
itemTransform(self, QGraphicsItem) → Tuple[QTransform, bool]
keyPressEvent(self, QKeyEvent)
keyReleaseEvent(self, QKeyEvent)
killTimer(self, int)
layout(self) → QGraphicsLayout
layoutDirection(self) → Qt.LayoutDirection
legend(self) → QLegend
locale(self) → QLocale
localizeNumbers(self) → bool
mapFromItem(self, QGraphicsItem, Union[QPointF, QPoint]) → QPointF

mapFromItem(self, QGraphicsItem, QRectF) -> QPolygonF mapFromItem(self, QGraphicsItem, QPolygonF) -> QPolygonF mapFromItem(self, QGraphicsItem, QPainterPath) -> QPainterPath mapFromItem(self, QGraphicsItem, float, float) -> QPointF mapFromItem(self, QGraphicsItem, float, float, float, float) -> QPolygonF

mapFromParent(self, Union[QPointF, QPoint]) → QPointF

mapFromParent(self, QRectF) -> QPolygonF mapFromParent(self, QPolygonF) -> QPolygonF mapFromParent(self, QPainterPath) -> QPainterPath mapFromParent(self, float, float) -> QPointF mapFromParent(self, float, float, float, float) -> QPolygonF

mapFromScene(self, Union[QPointF, QPoint]) → QPointF

mapFromScene(self, QRectF) -> QPolygonF mapFromScene(self, QPolygonF) -> QPolygonF mapFromScene(self, QPainterPath) -> QPainterPath mapFromScene(self, float, float) -> QPointF mapFromScene(self, float, float, float, float) -> QPolygonF

mapRectFromItem(self, QGraphicsItem, QRectF) → QRectF

mapRectFromItem(self, QGraphicsItem, float, float, float, float) -> QRectF

mapRectFromParent(self, QRectF) → QRectF

mapRectFromParent(self, float, float, float, float) -> QRectF

mapRectFromScene(self, QRectF) → QRectF

mapRectFromScene(self, float, float, float, float) -> QRectF

mapRectToItem(self, QGraphicsItem, QRectF) → QRectF

mapRectToItem(self, QGraphicsItem, float, float, float, float) -> QRectF

mapRectToParent(self, QRectF) → QRectF

mapRectToParent(self, float, float, float, float) -> QRectF

mapRectToScene(self, QRectF) → QRectF

mapRectToScene(self, float, float, float, float) -> QRectF

mapToItem(self, QGraphicsItem, Union[QPointF, QPoint]) → QPointF

mapToItem(self, QGraphicsItem, QRectF) -> QPolygonF mapToItem(self, QGraphicsItem, QPolygonF) -> QPolygonF mapToItem(self, QGraphicsItem, QPainterPath) -> QPainterPath mapToItem(self, QGraphicsItem, float, float) -> QPointF mapToItem(self, QGraphicsItem, float, float, float, float) -> QPolygonF

mapToParent(self, Union[QPointF, QPoint]) → QPointF

mapToParent(self, QRectF) -> QPolygonF mapToParent(self, QPolygonF) -> QPolygonF mapToParent(self, QPainterPath) -> QPainterPath mapToParent(self, float, float) -> QPointF mapToParent(self, float, float, float, float) -> QPolygonF

mapToPosition(self, Union[QPointF, QPoint], series: QAbstractSeries = None) → QPointF
mapToScene(self, Union[QPointF, QPoint]) → QPointF

mapToScene(self, QRectF) -> QPolygonF mapToScene(self, QPolygonF) -> QPolygonF mapToScene(self, QPainterPath) -> QPainterPath mapToScene(self, float, float) -> QPointF mapToScene(self, float, float, float, float) -> QPolygonF

mapToValue(self, Union[QPointF, QPoint], series: QAbstractSeries = None) → QPointF
margins(self) → QMargins
maximumHeight(self) → float
maximumSize(self) → QSizeF
maximumWidth(self) → float
metaObject(self) → QMetaObject
minimumHeight(self) → float
minimumSize(self) → QSizeF
minimumWidth(self) → float
mouseDoubleClickEvent(self, QGraphicsSceneMouseEvent)
mouseMoveEvent(self, QGraphicsSceneMouseEvent)
mousePressEvent(self, QGraphicsSceneMouseEvent)
mouseReleaseEvent(self, QGraphicsSceneMouseEvent)
SChart.moveBy(self, float, float)
moveEvent(self, QGraphicsSceneMoveEvent)
moveToThread(self, QThread)
objectName(self) → str
objectNameChanged

objectNameChanged(self, str) [signal]

opacity(self) → float
opacityChanged

opacityChanged(self) [signal]

opaqueArea(self) → QPainterPath
ownedByLayout(self) → bool
paint(self, QPainter, QStyleOptionGraphicsItem, widget: QWidget = None)
paintWindowFrame(self, QPainter, QStyleOptionGraphicsItem, widget: QWidget = None)
palette(self) → QPalette
panel(self) → QGraphicsItem
panelModality(self) → QGraphicsItem.PanelModality
parent(self) → QObject
parentChanged

parentChanged(self) [signal]

parentItem(self) → QGraphicsItem
parentLayoutItem(self) → QGraphicsLayoutItem
parentObject(self) → QGraphicsObject
parentWidget(self) → QGraphicsWidget
plotArea(self) → QRectF
plotAreaBackgroundBrush(self) → QBrush
plotAreaBackgroundPen(self) → QPen
plotAreaChanged

plotAreaChanged(self, QRectF) [signal]

polishEvent(self)
pos(self) → QPointF
preferredHeight(self) → float
preferredSize(self) → QSizeF
preferredWidth(self) → float
prepareGeometryChange(self)
property(self, str) → Any
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.

receivers(self, PYQT_SIGNAL) → int
rect(self) → QRectF
releaseShortcut(self, int)
removeAction(self, QAction)
removeAllSeries(self)
removeAxis(self, QAbstractAxis)
removeEventFilter(self, QObject)
removeSceneEventFilter(self, QGraphicsItem)
removeSeries(self, QAbstractSeries)
resetTransform(self)
resize(self, QSizeF)

resize(self, float, float)

resizeEvent(self, QGraphicsSceneResizeEvent)
rotation(self) → float
rotationChanged

rotationChanged(self) [signal]

scale(self) → float
scaleChanged

scaleChanged(self) [signal]

scene(self) → QGraphicsScene
sceneBoundingRect(self) → QRectF
sceneEvent(self, QEvent) → bool
sceneEventFilter(self, QGraphicsItem, QEvent) → bool
scenePos(self) → QPointF
sceneTransform(self) → QTransform
SChart.scroll(self, float, float)
sender(self) → QObject
senderSignalIndex(self) → int
series(self) → List[QAbstractSeries]
setAcceptDrops(self, bool)
setAcceptHoverEvents(self, bool)
setAcceptTouchEvents(self, bool)
setAcceptedMouseButtons(self, Union[Qt.MouseButtons, Qt.MouseButton])
setActive(self, bool)
setAnimationDuration(self, int)
setAnimationEasingCurve(self, Union[QEasingCurve, QEasingCurve.Type])
setAnimationOptions(self, Union[QChart.AnimationOptions, QChart.AnimationOption])
setAttribute(self, Qt.WidgetAttribute, on: bool = True)
setAutoFillBackground(self, bool)
setAxisX(self, QAbstractAxis, series: QAbstractSeries = None)
setAxisY(self, QAbstractAxis, series: QAbstractSeries = None)
setBackgroundBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
setBackgroundPen(self, Union[QPen, QColor, Qt.GlobalColor, QGradient])
setBackgroundRoundness(self, float)
setBackgroundVisible(self, visible: bool = True)
setBoundingRegionGranularity(self, float)
setCacheMode(self, QGraphicsItem.CacheMode, logicalCacheSize: QSize = QSize())
SChart.setContentsMargins(self, float, float, float, float)
setCursor(self, Union[QCursor, Qt.CursorShape])
setData(self, int, Any)
setDropShadowEnabled(self, enabled: bool = True)
setEnabled(self, bool)
setFiltersChildEvents(self, bool)
setFlag(self, QGraphicsItem.GraphicsItemFlag, enabled: bool = True)
setFlags(self, Union[QGraphicsItem.GraphicsItemFlags, QGraphicsItem.GraphicsItemFlag])
setFocus(self, focusReason: Qt.FocusReason = Qt.OtherFocusReason)
setFocusPolicy(self, Qt.FocusPolicy)
setFocusProxy(self, QGraphicsItem)
setFont(self, QFont)
setGeometry(self, QRectF)

setGeometry(self, float, float, float, float)

setGraphicsEffect(self, QGraphicsEffect)
setGraphicsItem(self, QGraphicsItem)
setGroup(self, QGraphicsItemGroup)
setInputMethodHints(self, Union[Qt.InputMethodHints, Qt.InputMethodHint])
setLayout(self, QGraphicsLayout)
setLayoutDirection(self, Qt.LayoutDirection)
setLocale(self, QLocale)
setLocalizeNumbers(self, bool)
setMargins(self, QMargins)
setMaximumHeight(self, float)
setMaximumSize(self, QSizeF)

setMaximumSize(self, float, float)

setMaximumWidth(self, float)
setMinimumHeight(self, float)
setMinimumSize(self, QSizeF)

setMinimumSize(self, float, float)

setMinimumWidth(self, float)
setObjectName(self, str)
setOpacity(self, float)
setOwnedByLayout(self, bool)
setPalette(self, QPalette)
setPanelModality(self, QGraphicsItem.PanelModality)
setParent(self, QObject)
setParentItem(self, QGraphicsItem)
setParentLayoutItem(self, QGraphicsLayoutItem)
setPlotArea(self, QRectF)
setPlotAreaBackgroundBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
setPlotAreaBackgroundPen(self, Union[QPen, QColor, Qt.GlobalColor, QGradient])
setPlotAreaBackgroundVisible(self, visible: bool = True)
setPos(self, Union[QPointF, QPoint])

setPos(self, float, float)

setPreferredHeight(self, float)
setPreferredSize(self, QSizeF)

setPreferredSize(self, float, float)

setPreferredWidth(self, float)
setProperty(self, str, Any) → bool
setRotation(self, float)
setScale(self, float)
setSelected(self, bool)
setShortcutAutoRepeat(self, int, enabled: bool = True)
setShortcutEnabled(self, int, enabled: bool = True)
setSizePolicy(self, QSizePolicy)

setSizePolicy(self, QSizePolicy.Policy, QSizePolicy.Policy, controlType: QSizePolicy.ControlType = QSizePolicy.DefaultType)

setStyle(self, QStyle)
SChart.setTabOrder(QGraphicsWidget, QGraphicsWidget)
setTheme(self, QChart.ChartTheme)
setTitle(self, str)
setTitleBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])
setTitleFont(self, QFont)
setToolTip(self, str)
setTransform(self, QTransform, combine: bool = False)
setTransformOriginPoint(self, Union[QPointF, QPoint])

setTransformOriginPoint(self, float, float)

setTransformations(self, Iterable[QGraphicsTransform])
setVisible(self, bool)
setWindowFlags(self, Union[Qt.WindowFlags, Qt.WindowType])
SChart.setWindowFrameMargins(self, float, float, float, float)
setWindowTitle(self, str)
setX(self, float)
setY(self, float)
setZValue(self, float)
shape(self) → QPainterPath
show(self)
showEvent(self, QShowEvent)
signalsBlocked(self) → bool
size(self) → QSizeF
sizeHint(self, Qt.SizeHint, constraint: QSizeF = QSizeF()) → QSizeF
sizePolicy(self) → QSizePolicy
stackBefore(self, QGraphicsItem)
startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) → int
staticMetaObject = <PyQt5.QtCore.QMetaObject object>
style(self) → QStyle
testAttribute(self, Qt.WidgetAttribute) → bool
theme(self) → QChart.ChartTheme
thread(self) → QThread
timerEvent(self, QTimerEvent)
title(self) → str
titleBrush(self) → QBrush
titleFont(self) → QFont
toGraphicsObject(self) → QGraphicsObject
toolTip(self) → str
topLevelItem(self) → QGraphicsItem
topLevelWidget(self) → QGraphicsWidget
tr(self, str, disambiguation: str = None, n: int = - 1) → str
transform(self) → QTransform
transformOriginPoint(self) → QPointF
transformations(self) → List[QGraphicsTransform]
type(self) → int
ungrabGesture(self, Qt.GestureType)
ungrabKeyboard(self)
ungrabKeyboardEvent(self, QEvent)
ungrabMouse(self)
ungrabMouseEvent(self, QEvent)
unsetCursor(self)
unsetLayoutDirection(self)
unsetWindowFrameMargins(self)
update(self, rect: QRectF = QRectF())

update(self, float, float, float, float)

updateGeometry(self)
updateMicroFocus(self)
visibleChanged

visibleChanged(self) [signal]

wheelEvent(self, QGraphicsSceneWheelEvent)
window(self) → QGraphicsWidget
windowFlags(self) → Qt.WindowFlags
windowFrameEvent(self, QEvent) → bool
windowFrameGeometry(self) → QRectF
windowFrameRect(self) → QRectF
windowFrameSectionAt(self, Union[QPointF, QPoint]) → Qt.WindowFrameSection
windowTitle(self) → str
windowType(self) → Qt.WindowType
x(self) → float
xChanged

xChanged(self) [signal]

y(self) → float
yChanged

yChanged(self) [signal]

zChanged

zChanged(self) [signal]

zValue(self) → float
zoom(self, float)
zoomIn(self)

zoomIn(self, QRectF)

zoomOut(self)
zoomReset(self)
addHistogram(name, values, bin_settings='auto', bar_series=None, color=None, size=1, legend=True, fitter=<function histogram>, xside='bottom', yside='left', barset_class=<class 'schrodinger.ui.qt.schart.SHistogramBarSet'>, barseries_class=<class 'schrodinger.ui.qt.schart.SHistogramBarSeries'>)

Add a new histogram to the chart.

Note that for QCharts, a “bar set” is a set of bars that make up a histogram (or other data related by a bunch of bars). A “bar series” is a collection of one or more bar sets. For instance, if you wanted to display two different histograms on the same chart in the same location. A bar set is much more analogous to a normal QXYSeries than a bar series is.

Parameters
  • name (str) – The name of the histogram - this will be the name of the series shown in the legend and the default X axis title

  • values (list) – The set of values from which the histogram will be computed. See also the fitter parameter.

  • bin_settings (str, int or list) – This is passed to the numpy.histogram method or the user’s supplied histogram method as the bins parameter. May be a string such as SChart.AUTO to indicate how the bins are to be determined. May be an integer to give the total number of bins, or may be a list of bin edge values. See also the bar_settings parameter.

  • bar_series (SHistogramBarSeries) – An existing series that this histogram should be associated with. If used, the value of bin_settings is ignored if the bar_series has existing edges.

  • color (QtGui.QColor or Qt.GlobalColor constant or None) – The color for this histogram. If None, a color from the current color list will be used.

  • size (int) – The width of the histogram bars. 1 indicates bars that should touch but not overlap. Values < 1 will leave a proportionate amount of space between the bars.

  • legend (bool) – Whether the series should show in the legend

  • fitter (callable) – A function to call to compute the histogram using the data in values. Must follow the API of the numpy.histgram function. If None, then the data in values is considered the pre-computed histogram and will be used directly without modification. In this case, the bin_settings should be the list of bin edges.

  • xside (str) – The X axis side to attach the series to. Should be either BOTTOM or TOP

  • yside (str) – The Y axis side to attach the series to. Should be either LEFT or RIGHT

  • barset_class (class) – The class to use to create the bar set for this histogram

  • barseries_class (class) – The class to use to create the bar series this histogram should be attached to.

Return type

SeriesData

Returns

The bar series will be in the SeriesData.series property. The new bar set will be in the SeriesData.bar_set property.

seriesHovered(point, is_hovered)

Callback for when the mouse is over a point in the series

Parameters
  • point (QtCore.QPointF) – The point the mouse is over

  • is_hovered – True if the mouse is over the point, False if the mouse left the point.

barsHovered(is_hovered, index)

Callback for when the mouse is over a bar in a bar set

Parameters
  • is_hovered – True if the mouse is over the bar, False if the mouse left the bar.

  • index (int) – The index of the bar the mouse is over. It may belong to one of many different bar sets

addAndAttachSeries(series, xside='bottom', yside='left')

Add the series to the chart and attach it to the x and y axes

Parameters
  • series (QtChart.QAbstractSeries) – The series to add to the chart

  • xside (str) – The X axis side to attach the series to. Should be either BOTTOM or TOP

  • yside (str) – The Y axis side to attach the series to. Should be either LEFT or RIGHT

addTrendLine(data, name=None, fitter=None)

Add a trendline to a series

Parameters
  • data (SeriesData) – The SeriesData that contains the series to add the trendline to

  • name (str) – The name of the trendline series

  • fitter (callable) – The function to fit the data. Must have the same API as the fitLine method.

showSeriesInLegend(series, show=True)

Set the visibility of the given series in the legend

Parameters
  • series (QtChart.QAbstractSeries) – The series to set the visibility for

  • show (bool) – Whether to show the series or not

reset()

Remove all the series from the chart, resets the view, and resets axis labels