我在 Python 中有三个数据点 xs、ys、zs 列表,我正在尝试matplotlib
使用该scatter3d
方法创建一个 3d 图。
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()
andplt.ylim()
工作正常,但我没有找到在 z 方向设置边框的功能。我该怎么做?