code: def on_equalarea_specimen_select(self, event):
          
          if not self.specimen_EA_xdata or not self.specimen_EA_ydata:
              return
          pos = event.GetPosition()
          width, height = self.canvas2.get_width_height()
          pos[1] = height - pos[1]
          xpick_data, ypick_data = pos
          xdata_org = self.specimen_EA_xdata
          ydata_org = self.specimen_EA_ydata
          data_corrected = self.specimen_eqarea.transData.transform(
              vstack([xdata_org, ydata_org]).T)
          xdata, ydata = data_corrected.T
          xdata = list(map(float, xdata))
          ydata = list(map(float, ydata))
          e = 4e0
  
          index = None
          for i, (x, y) in enumerate(zip(xdata, ydata)):
              if 0 < sqrt((x-xpick_data)**2. + (y-ypick_data)**2.) < e:
                  index = i
                  break
          if index != None:
              self.fit_box.SetSelection(index)
              self.draw_figure(self.s, True)
              self.on_select_fit(event)
docs: Get mouse position on double click find the nearest interpretation
          to the mouse
          position then select that interpretation
  
          Parameters
          ----------
          event : the wx Mouseevent for that click
  
          Alters
          ------
          current_fit