fitToView
R2026bDescription
fitToView( automatically adjusts
the y-axis limits of all displays of the
scope)timescope object to fit the currently displayed data.
The function does not consider historic data outside the current time span or zoom level.
The fitToView function performs a one‑time autoscaling
operation without changing the YLimitsMode property of the
timescope object and is useful for resetting the view or
updating y-axis limits on demand.
If you set YLimitsMode to "auto" or
"auto-expand", the scope continues to automatically adjust
limits as new data arrives. If you set YLimitsMode to
"manual" and to make a one-time adjustment of the
y-axis limits without switching to continuous autoscaling,
use the fitToView object function.
fitToView(
adjusts the y-axis limits of the specified display only.scope,displayIndex)
Examples
Input Arguments
Version History
Introduced in R2026b

