- 使用meshgrid生成网格
t = np.linspace(1, 5, 5)
x, y = np.meshgrid(t,t)
- 使用plotsurface(z使用自定义的函数比如高斯分布生成)
import numpy as np
from mpl_toolkits.mplot
t = np.linspace(1, 5, 5)
x, y = np.meshgrid(t,t)
import numpy as np
from mpl_toolkits.mplot