class_docstr: Infinite horizontal or vertical region for 2D plots.
  
  Parameters
  ----------
  pos : list, tuple or numpy array
      Bounds of the region along the axis. len(pos) must be >=2.
  color : list, tuple, or array
      The color to use when drawing the line. It must have a shape of
      (1, 4) for a single color region or (len(pos), 4) for a multicolor
      region.
  vertical:
      True for drawing a vertical region, False for an horizontal region
class_docstr_tok: ["Infinite","horizontal","or","vertical","region","for","2D","plots",".","Parameters","--","--","--","--","--","pos",":","list",",","tuple","or","numpy","array","Bounds","of","the","region","along","the","axis",".","len","(","pos",")","must","be",">","=2",".","color",":","list",",","tuple",",","or","array","The","color","to","use","when","drawing","the","line",".","It","must","have","a","shape","of","(","1",",","4",")","for","a","single","color","region","or","(","len","(","pos",")",",","4",")","for","a","multicolor","region",".","vertical",":","True","for","drawing","a","vertical","region",",","False","for","an","horizontal","region"]
code: def pos(self):
      if self._is_vertical:
          return self._pos[:, 0].ravel()[::2]
      else:
          return self._pos[:, 1].ravel()[::2]
  
file_path: vispy/vispy/visuals/linear_region.py
imports: import numpy
  from ..None import gloo
  from .visual import Visual
label_desc: Use image node_id 4 for calling the LinearRegionVisual obj's underlying member method code with example usage: obj.pos() and returns: self, self