monsterhy123
 1 import matplotlib.pyplot as plt
 2 #导入3D包
 3 from mpl_toolkits.mplot3d import Axes3D
 4 #创建X、Y、Z坐标
 5 X=[1,1,2,2]
 6 Y=[3,4,4,3]
 7 Z=[1,100,1,1]
 8 fig = plt.figure()
 9 # 创建了一个Axes3D的子图放到figure画布里面
10 ax = Axes3D(fig)
11 ax.plot_trisurf(X, Y, Z)
12 plt.show()

 

 

 

分类:

技术点:

相关文章:

  • 2021-11-27
  • 2021-05-06
  • 2021-12-02
猜你喜欢
  • 2021-12-28
  • 2022-01-18
  • 2021-12-28
  • 2021-06-01
  • 2021-07-03
  • 2021-12-12
  • 2021-12-07
相关资源
相似解决方案