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 _prepare_draw(self, view):
      if self._need_vertex_update:
          self._build_vertex_data()
  
      if view._need_method_update:
          self._update_method(view)
  
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 4 for calling the GridLinesVisual obj's underlying member method code with example usage: obj._prepare_draw(view) without return types