class_docstr: Widget containing an axis
  
  Parameters
  ----------
  orientation : str
      Orientation of the axis, 'left' or 'bottom'.
  **kwargs : dict
      Keyword arguments to pass to AxisVisual.
docstr: Resize event handler
  
  Parameters
  ----------
  event : instance of Event
      The event.
docstr_tok: ["Resize","event","handler","Parameters","--","--","--","--","--","event",":","instance","of","Event","The","event","."]
code: def on_resize(self, event):
      """Resize event handler
  
      Parameters
      ----------
      event : instance of Event
          The event.
      """
      self._update_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 2 for calling the AxisWidget obj's underlying member method code with example usage: obj.on_resize(event) without return types