likegrid1d on arbitrary axes