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 __init__(self, orientation="left", **kwargs):
      if "tick_direction" not in kwargs:
          tickdir = {
              "left": (-1, 0),
              "right": (1, 0),
              "bottom": (0, 1),
              "top": (0, -1),
          }[orientation]
          kwargs["tick_direction"] = tickdir
      self.axis = AxisVisual(**kwargs)
      self.orientation = orientation
      self._linked_view = None
      Widget.__init__(self)
      self.add_subvisual(self.axis)
  
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 1 to create a new AxisWidget object from inherited base classes: Widget with example: obj = AxisWidget(orientation)