createBar

PURPOSE ^

Create bar of production template

SYNOPSIS ^

function[figure1]= createBar(data, xLabel, yLabel, Title)

DESCRIPTION ^

 Create bar of production template

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Create bar of production template
0002 function[figure1]= createBar(data, xLabel, yLabel, Title)
0003   
0004  figure1 = figure;
0005   
0006  % Create axes
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  % Create bar
0017  bar1 = bar(data,...
0018    'BarLayout','stacked',...
0019    'LineWidth',1);
0020   
0021  % Create xlabel
0022  xlabel(xLabel,...
0023    'FontName','Times New Roman',...
0024    'FontSize',13,...
0025    'FontWeight','bold');
0026   
0027  % Create ylabel
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

Generated on Fri 30-Jul-2010 16:56:05 by m2html © 2003