np.meshgrid()的理解
import numpy as np
pointx = np.array([1,2,3])
pointy = np.array([-1,-2])
mesh = np.meshgrid(pointx,pointy)
mesh
[array([[1, 2, 3],
[1, 2, 3]]),
array([[-1, -1, -1],
[-2, -2, -2]])]
xs, ys = np.meshgrid(pointx,pointy)
xs
array([[1, 2, 3],
[1, 2, 3]])
ys
array([[-1, -1, -1],
[-2, -2, -2]])
那怎么来理解meshgrid呢
参考:https://www.geeksforgeeks.org/numpy-meshgrid-function/