Appearance and behavior of individual lines in stacked plot
StackedLineProperties
properties control the appearance and
behavior of individual lines 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
StackedLineProperties
objects, named LineProperties
.
To set properties of an individual line, index into LineProperties
and
access properties of the corresponding object.
You can use dot notation to query and set properties. For
example, change the third plot to a scatter plot using its PlotType
property.
T = readtable('outages.csv'); s = stackedplot(T); c = s.LineProperties(3).PlotType s.LineProperties(3).PlotType = 'scatter';