Zoom in and out on a scene
Syntax
camzoom(zoom_factor)
camzoom(axes_handle,...)
Description
camzoom(zoom_factor)
zooms in or out on the scene depending on the value specified by zoom_factor
. If zoom_factor
is greater than 1, the scene appears larger; if zoom_factor
is greater than zero and less than 1, the scene appears smaller.
camzoom(axes_handle,...)
operates on the axes identified by the first argument, axes_handle
. When you do not specify an axes handle, camzoom
operates on the current axes.
Remarks
camzoom
sets the Axes CameraViewAngle
property, which in turn causes the CameraViewAngleMode
property to be set to manual
. Note that setting the CameraViewAngle
property disables MATLAB's stretch-to-fill feature (stretching of the axes to fit the window). This may result in a change to the aspect ratio of your graph. See the axes
function for more information on this behavior.
See Also
axes
, camorbit
, campan
, camroll
, camdolly
The "Camera Properties" section in the Using MATLAB Graphics manual
[ Previous | Help Desk | Next ]