Graphics |
Rotate 3D -- Interactive Rotation of 3-D Views
MATLAB enables you to rotate graphs to any orientation with the mouse. Rotation involves the reorientation of the axes and all the graphics objects it contains. Therefore none of the data defining the graphics objects is affected by rotation; instead the orientation of the x-, y-, and z-axes changes with respect to the viewer.
Enabling Rotate 3D
There are three ways to enable Rotate 3D mode:
rotate3d
command.
Once the mode is enabled, you press and hold the mouse button while moving the cursor to rotate the graph.
Selecting Predefined Views
When Rotate 3D mode is enabled, you can control various rotation options from the right-click context menu.
You can rotate to predefined views on the right-click context menu:
Rotation Style for Complex Graphs
You can select from two rotation styles on the right-click context menu's Rotation Options submenu:
Axes Behavior During Rotation
You can select two types of behavior with respect to the aspect ratio of axes during rotation:
The following pictures illustrate a sphere as it is rotated with Stretch-to-Fill Axes selected. Note that the sphere is not round.
The next picture shows how the Fixed Aspect Ratio Axes option results in a sphere that maintains its proper shape as it is rotated.
Undo/Redo -- Eliminating Mistakes
The figure Edit menu contains two items that enable you to undo any zoom, pan, or rotate operation.
Undo -- Remove the effect of the last operation.
Redo -- Perform again the last operation that you removed by selecting Undo.
For example, if you create a plot, zoom in, pan the view, and then undo the pan operation, the menu looks as follows:
You could now undo the previous zoom operation or redo the pan operation you just undid.
Panning -- Moving Your View of the Graph | Analyzing Graphical Data |
© 1994-2005 The MathWorks, Inc.