class_docstr: A path editor.
  
  Press 't' to toggle vertex markers on and off.  When vertex markers are on,
  they can be dragged with the mouse.
class_docstr_tok: ["A","path","editor",".","Press","'t","'","to","toggle","vertex","markers","on","and","off",".","When","vertex","markers","are","on",",","they","can","be","dragged","with","the","mouse","."]
docstr: Callback for mouse movements.
docstr_tok: ["Callback","for","mouse","movements","."]
code: def on_mouse_move(self, event):
      """Callback for mouse movements."""
      if (
          self._ind is None
          or event.inaxes is None
          or event.button != MouseButton.LEFT
          or not self.showverts
      ):
          return
  
      vertices = self.pathpatch.get_path().vertices
  
      vertices[self._ind] = event.xdata, event.ydata
      self.line.set_data(zip(*vertices))
  
      self.canvas.restore_region(self.background)
      self.ax.draw_artist(self.pathpatch)
      self.ax.draw_artist(self.line)
      self.canvas.blit(self.ax.bbox)
  
file_path: matplotlib/galleries/examples/event_handling/path_editor.py
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.backend_bases import MouseButton
  from matplotlib.patches import PathPatch
  from matplotlib.path import Path
label_desc: Use image node_id 7 for calling the PathInteractor obj's underlying member method code with example usage: obj.on_mouse_move(event) without return types