mpl的Axes3D绘制三维图像

文章目录

1.绘制三维图像
2.plt.axes()
1.绘制三维图像
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection=‘3d’)
X = [1, 2, 1, 1]
Y = [1, 1, 2, 2]
Z = [3, 4, 4, 3]
ax.plot_trisurf(X, Y, Z)
plt.show()
在这里插入图片描述
在这里插入图片描述
csdn搜索:绘制三维图像

猜你喜欢

转载自blog.csdn.net/m0_38127487/article/details/113710663
今日推荐