pareto
帕累托字符t
Syntax
pareto(Y)
pareto(Y,names)
pareto(Y,X)
H = pareto(...)
[H,ax] = pareto(...)
Description
帕累托字符ts display the values in the vectorY
as bars drawn in descending order. Values inY
must be nonnegative and not includeNaN
s. Only the first 95% of the cumulative distribution is displayed.
pareto(Y)
labels each bar with its element index inY
and also plots a line displaying the cumulative sum ofY
.
pareto(Y,names)
labels each bar with the associated text in the matrix or cell arraynames
.
pareto(Y,X)
labels each bar with the associated value fromX
.
pareto(ax,..)
plots into the axesax
rather than the current axes,gca
.
H = pareto(...)
returns the primitiveLine
andBar
objects created.
[H,ax] = pareto(...)
additionally returns the two axes objects created.
Examples
Tips
You cannot place datatips (use the Datacursor tool) on graphs created withpareto
.