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: Link this axis to a ViewBox
  
  This makes it so that the axis's domain always matches the
  visible range in the ViewBox.
  
  Parameters
  ----------
  view : instance of ViewBox
      The ViewBox to link.
docstr_tok: ["Link","this","axis","to","a","ViewBox","This","makes","it","so","that","the","axis","'s","domain","always","matches","the","visible","range","in","the","ViewBox",".","Parameters","--","--","--","--","--","view",":","instance","of","ViewBox","The","ViewBox","to","link","."]
code: def link_view(self, view):
      """Link this axis to a ViewBox
  
      This makes it so that the axis's domain always matches the
      visible range in the ViewBox.
  
      Parameters
      ----------
      view : instance of ViewBox
          The ViewBox to link.
      """
      if view is self._linked_view:
          return
      if self._linked_view is not None:
          self._linked_view.scene.transform.changed.disconnect(
              self._view_changed
          )
      self._linked_view = view
      view.scene.transform.changed.connect(self._view_changed)
      self._view_changed()
  
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 5 for calling the AxisWidget obj's underlying member method code with example usage: obj.link_view(view) without return types