0001
0002 function[figure1]= createBar(data, xLabel, yLabel, Title)
0003
0004 figure1 = figure;
0005
0006
0007 axes1 = axes(...
0008 'CameraUpVector',[0 1 0],...
0009 'FontName','Times New Roman',...
0010 'FontSize',13,...
0011 'FontWeight','demi',...
0012 'Parent',figure1);
0013 box('on');
0014 hold('all');
0015
0016
0017 bar1 = bar(data,...
0018 'BarLayout','stacked',...
0019 'LineWidth',1);
0020
0021
0022 xlabel(xLabel,...
0023 'FontName','Times New Roman',...
0024 'FontSize',13,...
0025 'FontWeight','bold');
0026
0027
0028 ylabel(yLabel,...
0029 'FontName','Times New Roman',...
0030 'FontSize',13,...
0031 'FontWeight','bold');
0032
0033 title(Title,...
0034 'FontName','Times New Roman',...
0035 'FontSize',14,...
0036 'FontWeight','bold');
0037 end