Return coordinate matrices from two coordinate vectors.
Parameters: | x, y : ndarray
|
---|---|
Returns: | X, Y : ndarray
|
See also
Examples
>>> X, Y = numpy.meshgrid([1,2,3], [4,5,6,7])
>>> X
array([[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3]])
>>> Y
array([[4, 4, 4],
[5, 5, 5],
[6, 6, 6],
[7, 7, 7]])