gdesk.graphics.plotview module

class gdesk.graphics.plotview.PlotView(parent=None, background='default')

Bases: PySide2.QtWidgets.QGraphicsView

Re-implementation of QGraphicsView without scrollbars.

Allow unambiguous control of the viewed coordinate range.

property auto_zoom

Check whether the ‘Auto Zoom’ checkbox is checked.

Return bool

True when auto zoom is checked / enabled.

doubleClicked
initMenu()
limitRefreshRange()
matrixUpdated
mouseDoubleClickEvent(self, event: PySide2.QtGui.QMouseEvent)None
mouseMoveEvent(self, event: PySide2.QtGui.QMouseEvent)None
mousePressEvent(self, event: PySide2.QtGui.QMouseEvent)None
panXUpdated
panYUpdated
pixelSize()

Return vector with the length and width of one view pixel in scene coordinates

refresh()
scaleXUpdated
scaleYUpdated
setBackground(background)

Set the background color of the GraphicsView. To make the background transparent, use background=None.

setScale(sx, sy)
setXCenter(pos)
setXPosScale(pos, scale)
setYCenter(pos)
setYPosScale(pos, scale)
staticMetaObject = <PySide2.QtCore.QMetaObject object>
toggleAutoZoom()
translate(self, dx: float, dy: float)None
updateMatrix(propagate=True)
useOpenGL(b=True)
wheelEvent(self, event: PySide2.QtGui.QWheelEvent)None