'Set the alpha value (0-255) for the grid, or False to disable.
When grid lines are enabled, the axis tick lines are extended to cover
the extent of the linked ViewBox, if any.'

def setGrid(self, grid):

    self.grid = grid
    self.picture = None
    self.prepareGeometryChange()
    self.update()
