23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

daspect<br />

2daspect<br />

Purpose Set or query the axes data aspect ratio<br />

Syntax daspect<br />

daspect([aspect_ratio])<br />

daspect('mode')<br />

daspect('auto')<br />

daspect('manual')<br />

daspect(axes_handle,...)<br />

Description The data aspect ratio determines the relative scaling of the data units along the<br />

x-, y-, and z-axes.<br />

2-364<br />

daspect with no arguments returns the data aspect ratio of the current axes.<br />

daspect([aspect_ratio]) sets the data aspect ratio in the current axes to the<br />

specified value. Specify the aspect ratio as three relative values representing<br />

the ratio of the x-, y-, and z-axis scaling (e.g., [1 1 3] means one unit in x is<br />

equal in length to one unit in y and three unit in z).<br />

daspect('mode') returns the current value of the data aspect ratio mode,<br />

which can be either auto (the default) or manual. See Remarks.<br />

daspect('auto') sets the data aspect ratio mode to auto.<br />

daspect('manual') sets the data aspect ratio mode to manual.<br />

daspect(axes_handle,...) performs the set or query on the axes identified by<br />

the first argument, axes_handle. When you do not specify an axes handle,<br />

daspect operates on the current axes.<br />

Remarks daspect sets or queries values of the axes object DataAspectRatio and<br />

DataAspectRatioMode properties.<br />

When the data aspect ratio mode is auto, <strong>MATLAB</strong> adjusts the data aspect<br />

ratio so that each axis spans the space available in the figure window. If you<br />

are displaying a representation of a real-life object, you should set the data<br />

aspect ratio to [1 1 1] to produce the correct proportions.<br />

Setting a value for data aspect ratio or setting the data aspect ratio mode to<br />

manual disables <strong>MATLAB</strong>’s stretch-to-fill feature (stretching of the axes to fit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!