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"]
docstr: Return the (min, max) bounding values of this visual along *axis*
  in the local coordinate system.
docstr_tok: ["Return","the","(","min",",","max",")","bounding","values","of","this","visual","along","*","axis","*","in","the","local","coordinate","system","."]
code: def _compute_bounds(self, axis, view):
      """Return the (min, max) bounding values of this visual along *axis*
      in the local coordinate system.
      """
      is_vertical = self._is_vertical
      pos = self._pos
      if axis == 0 and is_vertical:
          return (pos[0, 0], pos[-1, 0])
      elif axis == 1 and not is_vertical:
          return (pos[0, 1], pos[-1, 1])
  
      return None
  
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 5 for calling the LinearRegionVisual obj's underlying member method code with example usage: obj._compute_bounds(axis, view) and returns: None, pos,  pos, pos,  pos