code: def image_props(event):
      
      x, y = event.mouseevent.xdata, event.mouseevent.ydata
      i, j = _coords2index(event.artist, x, y)
      z = event.artist.get_array()[i,j]
      if z.size > 1:
          # Override default numpy formatting for this specific case. Bad idea?
          z = ', '.join('{:0.3g}'.format(item) for item in z)
      return dict(z=z, i=i, j=j)
docs: Get information for a pick event on an ``AxesImage`` artist. Returns a dict
      of "i" & "j" index values of the image for the point clicked, and "z": the
      (uninterpolated) value of the image at i,j.
  
      Parameters
      -----------
      event : PickEvent
          The pick event to process
  
      Returns
      --------
      props : dict
          A dict with keys: z, i, j