class_docstr: Widget containing an axis
  
  Parameters
  ----------
  orientation : str
      Orientation of the axis, 'left' or 'bottom'.
  **kwargs : dict
      Keyword arguments to pass to AxisVisual.
code: def _axis_ends(self):
      r = self.rect
      if self.orientation == "left":
          return np.array([[r.right, r.top], [r.right, r.bottom]])
      elif self.orientation == "bottom":
          return np.array([[r.left, r.bottom], [r.right, r.bottom]])
      elif self.orientation == "right":
          return np.array([[r.left, r.top], [r.left, r.bottom]])
      elif self.orientation == "top":
          return np.array([[r.left, r.top], [r.right, r.top]])
      else:
          raise RuntimeError(
              "Orientation %s not supported." % self.orientation
          )
  
file_path: vispy/vispy/scene/widgets/axis.py
imports: import numpy
  from .widget import Widget
  from ...visuals import AxisVisual
label_desc: Use image node_id 4 for calling the AxisWidget obj's underlying member method code with example usage: obj._axis_ends() and returns: np, np, np, np