class_docstr: Label widget
  
  Parameters
  ----------
  text : str
      The label.
  rotation : float
      The rotation of the label.
  **kwargs : dict
      Keyword arguments to pass to TextVisual.
docstr: 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._set_pos()
  
file_path: vispy/vispy/scene/widgets/label.py
imports: from .widget import Widget
  from ...visuals import TextVisual
label_desc: Use image node_id 2 for calling the Label obj's underlying member method code with example usage: obj.on_resize(event) without return types