Pareto chart
![]()
pareto(Y)
pareto(Y,names)
pareto(Y,X)
pareto(ax,..)
H = pareto(...)
[H,ax] = pareto(...)
Pareto charts display the values in the vector Y as bars drawn in
descending order. Values in Y must be nonnegative and not include
NaNs. By default, either the tallest 10 bars or first 95% of the
cumulative distribution is displayed, whichever is smaller.
pareto(Y) labels each bar
with its element index in Y and also plots a line
displaying the cumulative sum of Y.
pareto(Y,names) labels
each bar with the associated text in the matrix or cell array names.
pareto(Y,X) labels each
bar with the associated value from X.
pareto(ax,..) plots into the axes ax rather than the
current axes, gca.
pareto(...,threshold) specifies a threshold value between
0 and 1. The threshold is the fraction of the
cumulative histogram to include in the chart. The chart displays a maximum of ten bars,
regardless of the threshold value.
H = pareto(...) returns
the primitive Line and Bar objects
created.
[H,ax] = pareto(...) additionally
returns the two axes objects created.