Bar graph
bar(
creates a bar
graph with one bar for each element in y
)y
. If y
is
a matrix, then bar
groups the bars according to
the rows in y
.
bar(___,
sets
the relative bar width, which controls the separation of bars within
a group. Specify width
)width
as a scalar value. Use this
option with any of the input argument combinations in the previous
syntaxes.
bar(___,
specifies
the style of the bar groups. For example, use style
)'stacked'
to
display each group as one multicolored bar.
bar(___,
sets
bar series properties using one or more Name,Value
)Name,Value
pair
arguments. The settings apply to all bars plotted. For example, use 'EdgeColor','black'
to
outline all the bars in black.