【发布时间】:2018-11-01 14:20:26
【问题描述】:
我见过两种创建 3D 轴的方法
fig = plt.figure()
ax = fig.add_subplot(111, projection="3d")
和
fig = plt.figure()
ax = p3.Axes3D(fig)
我查看了figure.add_subplot() 的 API。对于参数projection,没有像'3d' 这样的选项。我可以假设fig.add_subplot(111, projection="3d") 返回与Axes3D 完全相同的对象吗?
【问题讨论】:
-
你到底想要什么?
-
是的,你可以假设。另见this question。
标签: python matplotlib