www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/CreateParetoChartToShowCumulativeProductivityExample.m

    %% Label Bars in Pareto Chart
% Examine the cumulative productivity of a group of programmers to see how
% normal its distribution is. Label each bar with the name of the
% programmer.

% Copyright 2015 The MathWorks, Inc.


codelines = [200 120 555 608 1024 101 57 687];
coders = {'Fred','Ginger','Norman','Max','Julia','Wally','Heidi','Pat'};

figure
pareto(codelines, coders)
title('Lines of Code by Programmer')