问题描述
我似乎无法使用view([AZ,EL])
命令实现以下3D绘图视图方向.
I can't seem to achieve the following 3D plot view orientation using the view([AZ,EL])
command.
无论我多么努力使用鼠标或命令view
本身旋转图中的3D图,我都无法获得那个视角.还有指定视点的另一种方法吗?
No matter how hard I try rotating my 3D plot in the figure using the mouse or the command view
itself, I just can't get that viewing angle. Is there another way of specifying the viewpoint?
推荐答案
您可以使用相机控制功能,在这种情况下为 和 camroll
:
You can achieve these sorts of views using camera control functions, in this case camorbit
and camroll
:
[X, Y, Z] = peaks();
hAxes = gca;
surf(hAxes, X, Y, Z);
xlabel('x');
ylabel('y');
zlabel('z');
camorbit(-90, 0);
camroll(hAxes, -111);
请注意,正数x指向上方和右侧,正数z指向下方并右侧,而正y指向上方.
Notice that positive x is pointing up and to the right, positive z is pointing down and to the right, and positive y is pointing up.
我已经在MATLAB中完成了许多3D可视化,并整理了一些我通常使用鼠标来操纵视图的工具.我在 MathWorks文件交换上发布了一个名为 MouseManager
. 我提交的演示中的一个演示是一个示例,该示例说明了如何创建基于鼠标的视图操作(旋转,移动和缩放).
I've done a lot of 3D visualization in MATLAB, and have put together some tools I routinely use for manipulating the view with the mouse. I posted one such tool on the MathWorks File Exchange called MouseManager
. One of the demos I included in the submission is an example for how to create mouse-based manipulation of the view (rotating, dollying, and zooming).
这篇关于使用方位角和高程的不可能的观点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!