import numpy as np
import matplotlib.pyplot as plt
t = np.linspace(0, 2, 50) # 在0到4之间,均匀产生50点的数组
theta = t * 2 * np.pi # 角度
x = 150*np.sin(theta)
y = 150*np.cos(theta)
z = 20*t
fig = plt.figure(1)
ax = fig.add_subplot(1, 1, 1, projection='3d')
ax.plot(x, y, z, label='parametric curve')
plt.show()
pyhton画圆柱螺旋线程序
最新推荐文章于 2022-01-18 18:12:41 发布