ylim
Set or queryy- 轴限制
Syntax
ylim(限制)
yl = ylim
ylim auto
ylim manual
m = ylim('mode')
___= ylim(target,___)
Description
ylim(
设置y- 轴限制for the current axes or chart. Specifylimits
)limits
as a two-element vector of the form[ymin ymax]
, whereymax
大于ymin
。
ylim auto
设置自动模式,使轴确定y- 轴限制。The limits span the range of the plotted data. Use this option if you change the limits and then want to set them back to the default values. This command sets theYLimMode
property for the axes to'auto'
。
ylim manual
设置手动模式,在当前值处冻结限制。如果要在使用该选项中保留当前限制时,请使用此选项。坚持,稍等
command. This command sets theYLimMode
property for the axes to'manual'
。
returns the currenty- 轴限制mode, which is eitherm
= ylim('模式')'auto'
或者'manual'
。默认情况下,除非指定限制或将模式设置为手动,否则该模式是自动的。
___= ylim(
uses the axes or chart specified bytarget
,___)target
而不是当前轴。指定target
as the first input argument for any of the previous syntaxes. You can include an output argument if the original syntax supports an output argument. Use single quotes around the mode inputs, for example,ylim(target,'auto')
。
Examples
Input Arguments
Output Arguments
算法
Theylim
功能集和查询与y- 轴限制。