docs: def generate_megaman_data(sampling=2):
      """Generate 2D point data of the megaman image"""
      data = get_megaman_image()
      x = np.arange(sampling * data.shape[1]) / float(sampling)
      y = np.arange(sampling * data.shape[0]) / float(sampling)
      X, Y = map(np.ravel, np.meshgrid(x, y))
      C = data[np.floor(Y.max() - Y).astype(int),
               np.floor(X).astype(int)]
      return np.vstack([X, Y]).T, C