Graphics Previous page   Next Page

Zooming in 2-D and 3-D

Zooming changes your view of a graph. Zooming is useful to see greater detail in a smaller area. Zoom behaves differently depending on whether it is applied to a 2-D or 3-D view.

Enable zooming by clicking one of the zoom icons . Select + to zoom in and - to zoom out.

Note, when in zoom in mode, you can use Alt-Click to zoom out (i.e., press and hold down the Alt key while clicking the mouse).

Zooming in 2-D Views

In 2-D views, click the area of the axes where you want to zoom in, or drag the cursor to draw a box around the area you want to zoom in on. MATLAB redraws the axes, changing the limits to display the specified area.

For example, selecting the region of the following plot,

results in a rescaling of the axes to display only that region.

Undoing Zoom Actions

If you want to reset the graph to its original view, right-click to display the context menu and select Reset to Original View. You can also use the Undo item on the Edit menu to undo each operation you performed on your graph.

Zoom Constrained to Horizontal or Vertical

In 2-D views, you can constrain zoom to operate in either the horizontal or vertical direction. To do this, right-click to display the context menu while in zoom mode and select the desired zoom option.

Zooming in 3-D Views

In 3-D views, moving the cursor up or to the right zooms in, while moving the cursor down or to the left zooms out. Both toolbar icons enable the same behavior. 3-D zooming does not change the axes limits, as in 2-D zooming. Instead it changes the view (specifically, the axes CameraViewAngle property) as if you were looking through a camera with a zoom lens.

`


Previous page  Exporting Data Value to Workspace Variable Panning -- Moving Your View of the Graph Next page

© 1994-2005 The MathWorks, Inc.