发布时间:2019-08-07 14:07:05编辑:auto阅读(2337)
直接复制就能用,写的简单,请勿吐槽
import numpy as np
import mpl_toolkits.mplot3d
import matplotlib.pyplot as plt
x=[0,3,0,3,1.5]
y=[0,0,3,3,1.5]
z=[0,0.8,1.5,2.3,3]
ax=plt.subplot(111,projection='3d')
for i in range(len(x)):
for j in range(len(y)):
ax.plot((x[i],x[j]),(y[i],y[j]),(z[i],z[j]),color='red');
for i in range(len(x)):
ax.text(x[i],y[i],z[i],i,color='blue')
ax.set_zlabel('z')
ax.set_ylabel('y')
ax.set_xlabel('x')
plt.show()
上一篇: Python进行远程视频监控
下一篇: python生成安装文件 msi
47494
45794
36793
34324
28968
25598
24443
19611
19111
17632
5466°
6048°
5570°
5638°
6573°
5376°
5378°
5884°
5855°
7170°