code: def _reassigned_axes_event(event, ax):
      
      event = copy.copy(event)
      event.xdata, event.ydata = (
          ax.transData.inverted().transform_point((event.x, event.y)))
      return event
docs: Reassign *event* to *ax*.