numpy.meshgrid(*xi, **kwargs) [source]
Return coordinate matrices from coordinate vectors. Make N-D coordinate arrays for vectorized evaluations of N-D scalar/vector fields over N-D grids, given one-dimensional coordinate arrays x1, x2,..., xn. Changed in version 1.9: 1-D and 0-D cases are allowed. Parameters:
x1, x2,..., xn : array_like 1-D arrays representing the coordinates of a grid. indexing : {?xy?, ?ij?}, optional Cartesian (?xy?, default) or matrix (?ij?) indexing of output. S