gy = np.linspace(gmin[1], gmin[1] + gsize[1], sy + 1, endpoint=True)