StackedAxesProperties属性
Appearance and behavior of individual axes in stacked plot
StackedAxesProperties
properties control the appearance and behavior of individualy-axes in astacked plot. In a stacked plot, you can plot the variables of a table or timetable, or the columns of a matrix, in separatey-axes, stacked vertically. By changing property values, you can modify certain aspects of the stacked plot.
Thestackedplot
function returns aStackedLineChart
object. In turn, this object has an array ofStackedAxesProperties
objects, namedAxesProperties
. To set properties of an individualy-axis, index intoAxesProperties
and access properties of the corresponding object.
You can use dot notation to query and set properties. For example, changey-limits of the third plot using itsYLimits
property.
T = readtable('outages.csv'); s = stackedplot(T); c = s.AxesProperties(3).YLimits s.AxesProperties(3).YLimits = [0 1e6];