3
我有三个列表xs,ys,zs的Python中的数据点,我正尝试使用scatter3d
方法创建一个使用matplotlib
的3d图。在matplotlib中设置zlim scatter3d
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plt.xlim(290)
plt.ylim(301)
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')
ax.scatter(xs, ys, zs)
plt.savefig('dateiname.png')
plt.close()
的plt.xlim()
和plt.ylim()
做工精细,但我没有找到一个功能设置的边界在z方向。我该怎么做?
非常感谢您!这正是我所期待的。 – goethin