Skip to main content
`Ctrl`+`K`

# GLGridItem

class pyqtgraph.opengl.GLGridItem(

  size=None,
  color=(255, 255, 255, 76.5),
  antialias=True,
  glOptions='translucent',
  parentItem=None,

)

  Bases: `GLGraphicsItem`

  Displays a wire-frame grid.

  __init__(
    size=None,
    color=(255, 255, 255, 76.5),
    antialias=True,
    glOptions='translucent',
    parentItem=None,
  )
  setColor(
    color,
  )

    Set the color of the grid. Arguments are the same as those accepted by functions.mkColor()

  setSize(
    x=None,
    y=None,
    z=None,
    size=None,
  )

    Set the size of the axes (in its local coordinate system; this does not affect the transform) Arguments can be x,y,z or size=QVector3D().

  setSpacing(
    x=None,
    y=None,
    z=None,
    spacing=None,
  )

    Set the spacing between grid lines. Arguments can be x,y,z or spacing=QVector3D().