📜  matplotlib 三维绘图 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:57.928000             🧑  作者: Mango

代码示例3
def f(x, y):
    return np.sin(np.sqrt(x ** 2 + y ** 2))

x = np.linspace(-6, 6, 30)
y = np.linspace(-6, 6, 30)

X, Y = np.meshgrid(x, y)
Z = f(X, Y)