pbaspect
Control relative lengths of each axis
Syntax
描述
pbaspect(
集情节rati盒子方面o for the current axes. The plot box aspect ratio is the relative length of thex-axis,y-axis, andz-轴。Specifyratio
)ratio
as a three-element vector of positive values that represent the ratio of thex-axis,y-axis, andz- 轴长。For example,[3 1 1]
specifies that the length of thex- 轴等于长度的三倍y- 轴和z-轴。对于各个方向相等的轴长,请使用[1 1 1]
。
pbaspect auto
sets an automatic mode, enabling the axes to choose the appropriate plot box aspect ratio. The mode must be automatic to enable the “stretch-to-fill”轴的特征。
pbaspect manual
sets a manual mode and uses the ratio stored in thePlotBoxAspectratio
属性轴
目的。When the mode is manual, it disables the stretch-to-fill feature of the axes. Specifying a value for the plot box aspect ratio sets the mode to manual.
例子
Input Arguments
Output Arguments
More About
算法
Thepbaspect
function sets and queries several axes properties related to the data aspect ratio.
PlotBoxAspectratio
— Property that stores the plot box aspect ratio value.plotboxAspectratiomode
- 存储绘图框纵横比模式的属性。设置比率时,此属性更改为'manual'
。