gpt4 book ai didi

matplotlib - 我想绘制 3D 并设置 View 。 ax.dist 的单位是什么?

转载 作者:行者123 更新时间:2023-12-05 02:19:33 24 4
gpt4 key购买 nike

我的物体和相机之间的距离是 18 厘米。但是结果不对。

我的代码是

ax= figure.gca(projection="3d")
ax.view_init(elev= 130, azim = 12)
ax.dist=18

ax.dist的单位是什么?

最佳答案

ax.dist 没有任何单位。这是预测的一个相对因素。默认值为 ax.dist = 10,较小的值使单位立方体看起来更近,而较大的值使其看起来更远。

关于matplotlib - 我想绘制 3D 并设置 View 。 ax.dist 的单位是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42349909/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com