How to |
Rotate, Zoom, and Pan Graphics
|One of the most powerful aspects of graphics in Mathematica is their interactivity. Rotating, zooming, and panning your graphics allows for a more complete visualization experience by letting you understand images from every angle and present them from the very best viewpoint.|
This is a selection of examples from the complete "How to" screencast. »
Evaluate the following command to produce a 3D graphic that you can use for rotating, zooming, and panning:
To rotate a 3D graphic, mouse over the graphic until the cursor changes to indicate that rotation is possible, then click and drag.
When rotation is possible, the cursor will look like this:
Rotating from side to side moves the graphic around the
axis, while rotating up and down makes the
axis tumble. This corresponds to changing the ViewPoint
You can enable other actions by using modifier keys. As with rotating, the mouse is used to drive these interactions.
For example, press Ctrl
to enable zooming. When zooming is enabled, the cursor over a 3D graphic will look like this:
Zooming interactively corresponds to changing the ViewAngle
You can also translate the graphic by panning. Press Shift
to enable panning. When panning is enabled, the cursor over a 3D graphic will look like this:
With panning enabled, press and hold the mouse button and drag to translate the position of the graphic. This corresponds to changing the 2D component of the ViewCenter
Some graphics, such as those generated by ParametricPlot3D
, offer an additional rotation mode when the cursor is positioned in the corner of the graphic.
As before, evaluate the following command to generate a 3D graphic that you can use to try out this additional rotation mode:
Position your cursor in the corner of the graphic to enable the additional rotation mode, as shown in this screen shot:
Now press and hold the mouse button, then drag in a circular motion. This corresponds to changing the ViewVertical
Combining these interactive methods for viewing 3D graphics is an effective way to visualize specific regions of interest in your graphics.