我试图用阴谋绘制3D图形并需要调整摄像机位置。我发现有两种方法可以做到这一点:或者用camera
属性的Scene
对象,或者用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个数字相机的角位置是什么意思?他们是角度吗?以弧度?哪些角度?
哦,很好!这不完全是我的问题的答案,但它解决了我的问题无论如何:)其实,我有点困惑之间的相机和相机位置和思考问第二个问题关于“相机”(如何放大与“相机” ),这就是那个没有提出问题的答案。 :) 不管怎样,谢谢。 –
我建议对答案进行编辑,添加链接页面的摘要,因为SO上的链接专用答案是不鼓励的。 –
谢谢!遗憾的是,我也在这里复制:http://stackoverflow.com/questions/35478791/grab-camera-position-from-plotly-3d-graph/35497559#35497559 明天这将被添加到官方的Plotly Python文档中。 – user1561393