Skip to content

daspect

Get or set the data aspect ratio.

v = daspect
daspect([rx ry rz])
daspect('auto')

Controls the data aspect ratio — the relative scaling of x/y/z units. daspect([1 1 1]) makes one unit on each axis equal in screen size (true to data). Affects how surfaces, ratios, and angles appear.

daspect([1 1 1])
  • pbaspect — Get or set the plot box aspect ratio.
  • axis — Get or set axis limits and properties.