Skip to content

pbaspect

Get or set the plot box aspect ratio.

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

Controls the aspect ratio of the 3D plot box (independent of data ranges). Default is auto. Set explicit ratios to enforce a specific shape (e.g. [1 1 1] for a cube, [2 1 0.5] for non-cubic).

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