GraphicsLayoutWidget¶
-
class
pyqtgraph.
GraphicsLayoutWidget
(parent=None, **kargs)[source]¶ Convenience class consisting of a
GraphicsView
with a singleGraphicsLayout
as its central item.This class wraps several methods from its internal GraphicsLayout:
nextRow
nextColumn
addPlot
addViewBox
addItem
getItem
addLabel
addLayout
removeItem
itemIndex
clear
-
__init__
(parent=None, **kargs)[source]¶ Arguments:
parent
Optional parent widget
useOpenGL
If True, the GraphicsView will use OpenGL to do all of its rendering. This can improve performance on some systems, but may also introduce bugs (the combination of QGraphicsView and QGLWidget is still an ‘experimental’ feature of Qt)
background
Set the background color of the GraphicsView. Accepts any single argument accepted by
mkColor
. By default, the background color is determined using the ‘backgroundColor’ configuration option (seesetConfigOptions
).
-