class_docstr: Displays regularly spaced grid lines in any coordinate system and at
  any scale.
  
  Parameters
  ----------
  scale : tuple
      The scale factors to apply when determining the spacing of grid lines.
  color : Color
      The base color for grid lines. The final color may have its alpha
      channel modified.
code: def __init__(self, scale=(1, 1), color="w"):
      # todo: PlaneVisual should support subdivide/impostor methods from
      # image and gridlines should inherit from plane instead.
      self._grid_color_fn = Function(_GRID_COLOR)
      self._grid_color_fn["color"] = Color(color).rgba
      self._grid_color_fn["scale"] = scale
      ImageVisual.__init__(self, method="impostor")
      self.set_gl_state("additive", cull_face=False)
      self.shared_program.frag["get_data"] = self._grid_color_fn
      cfun = Function("vec4 null(vec4 x) { return x; }")
      self.shared_program.frag["color_transform"] = cfun
  
file_path: vispy/vispy/visuals/gridlines.py
imports: from __future__ import division
  from .image import ImageVisual
  from ..color import Color
  from .shaders import Function
label_desc: Use image node_id 1 to create a new GridLinesVisual object from inherited base classes: ImageVisual with example: obj = GridLinesVisual(scale, color)