StackedAxesProperties Properties
Appearance and behavior of individual axes in stacked plot
StackedAxesProperties properties control the appearance and
behavior of individual y-axes in a stacked plot. In
a stacked plot, you can plot the variables of a table or timetable, or the columns of a
matrix, in separate y-axes, stacked vertically. By changing property
values, you can modify certain aspects of the stacked plot.
The stackedplot function returns a
StackedLineChart object. In turn, this object has an array of
StackedAxesProperties objects, named AxesProperties.
To set properties of an individual y-axis, index into
AxesProperties and access properties of the corresponding object.
You can use dot notation to query and set properties. For
example, change y-limits of the third plot using its
YLimits property.
T = readtable("outages.csv");
s = stackedplot(T);
c = s.AxesProperties(3).YLimits
s.AxesProperties(3).YLimits = [0 1e6];Version History
Introduced in R2018b