code: from matplotlib.pyplot import figure, show
  import numpy as npy
  from numpy.random import rand
  
  if 1:  # picking on a scatter plot (matplotlib.collections.RegularPolyCollection)
  
      x, y, c, s = rand(4, 100)
  
  
      def onpick3(event):
          ind = event.ind
          print('onpick3 scatter:', ind, npy.take(x, ind), npy.take(y, ind))
  
  
      fig = figure()
      ax1 = fig.add_subplot(111)
      col = ax1.scatter(x, y, 100 * s, c, picker=True)
      # fig.savefig('pscoll.eps')
      fig.canvas.mpl_connect('pick_event', onpick3)
  
  show()
  
apis: matplotlib.pyplot.figure matplotlib.pyplot.show numpy.random.rand numpy.take