np.meshgrid() takes 1-D coordinate arrays and returns 2-D coordinate matrices covering every combination.