【发布时间】:2016-05-30 11:38:17
【问题描述】:
我正在尝试使用 plotly 绘制 3D 图形,并且需要调整摄像头位置。我发现有两种方法可以做到这一点:使用Scene 对象的camera 属性,或者使用cameraposition 属性。我对这两个都有问题,但是这个问题与cameraposition有关:我不明白这是什么意思。
docs 说:
| cameraposition [required=False] (value=camera position list or 1d numpy
| array):
| Sets the camera position with respect to the scene. The first entry
| (a list or 1d numpy array of length 4) sets the angular position of
| the camera. The second entry (a list or 1d numpy array of length 3)
| sets the (x,y,z) translation of the camera. The third entry (a
| scalar) sets zoom of the camera.
|
| Examples:
| [[0.2, 0.5, 0.1, 0.2], [0.1, 0, -0.1], 3]
相机的角度位置的4个数字是什么意思?它们是角度吗?在弧度?哪个角度?
【问题讨论】: