12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

daspectPurpose2daspectSet or query the axes data aspect ratioSyntaxDescriptiondaspectdaspect([aspect_ratio])daspect('mode')daspect('auto')daspect('manual')daspect(axes_handle,...)The data aspect ratio determines the relative scaling of the data units along thex-, y-, and z-axes.daspect with no arguments returns the data aspect ratio of the current axes.daspect([aspect_ratio]) sets the data aspect ratio in the current axes to thespecified value. Specify the aspect ratio as three relative values representingthe ratio of the x-, y-, and z-axis scaling (e.g., [1 1 3] means one unit in x isequal in length to one unit in y and three unit in z).daspect('mode') returns the current value of the data aspect ratio mode,which can be either auto (the default) or manual. See Remarks.daspect('auto') sets the data aspect ratio mode to auto.daspect('manual') sets the data aspect ratio mode to manual.daspect(axes_handle,...) performs the set or query on the axes identifiedby the first argument, axes_handle. When you do not specify an axes handle,daspect operates on the current axes.Remarksdaspect sets or queries values of the axes object DataAspectRatio andDataAspectRatioMode properties.When the data aspect ratio mode is auto, <strong>MATLAB</strong> adjusts the data aspectratio so that each axis spans the space available in the figure window. If youare displaying a representation of a real-life object, you should set the dataaspect ratio to [1 1 1] to produce the correct proportions.Setting a value for data aspect ratio or setting the data aspect ratio mode tomanual disables <strong>MATLAB</strong>’s stretch-to-fill feature (stretching of the axes to fit-119

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

Saved successfully!

Ooh no, something went wrong!