GridItem

class pyqtgraph.GridItem[source]

Bases: UIGraphicsItem

Displays a rectangular grid of lines indicating major divisions within a coordinate system. Automatically determines what divisions to use.

__init__()[source]
Arguments:  
bounds QRectF with coordinates relative to view box. The default is QRectF(0,0,1,1), which means the item will have the same bounds as the view.
paint(self, QPainter, QStyleOptionGraphicsItem, widget: QWidget = None)[source]
viewRangeChanged()[source]

Called when the view widget/viewbox is resized/rescaled