code: def generate_grid_coords(gx, gy):
      r
      return np.vstack([gx.ravel(), gy.ravel()]).T
docs: r"""Calculate x,y coordinates of each grid cell.
  
      Parameters
      ----------
      gx: numeric
          x coordinates in meshgrid
      gy: numeric
          y coordinates in meshgrid
  
      Returns
      -------
      (X, Y) ndarray
          List of coordinates in meshgrid