function createfigure(ymatrix1)
%CREATEFIGURE(YMATRIX1)
%  YMATRIX1:  bar matrix data

%  Auto-generated by MATLAB on 11-Feb-2010 22:12:26

% Create figure
figure1 = figure('PaperType','a4letter','PaperSize',[20.98 29.68]);

% Create axes
axes1 = axes('Parent',figure1,'YGrid','on',...
    'XTickLabel',{'PLI','SMTI revised','Greedy','Nearly Brute Force'},...
    'XTick',[1 2 3 4]);
box('on');
hold('all');

% Create title
title('Drop Rate VS Average Waiting Tme');

% Create multiple lines using matrix input to bar
bar1 = bar(ymatrix1,'Parent',axes1);
% set(bar1(1),'DisplayName','10\cdotDropRate (\alpha \approx 0, \gamma \approx 1)');
set(bar1(1),'DisplayName','10\cdotDropRate (\alpha \approx 0, \gamma \approx 1)');
set(bar1(2),'DisplayName','10\cdotDropRate (\alpha = 0, \gamma = 1)');
set(bar1(3),'DisplayName','Normalized QueueTime (\alpha \approx 0, \gamma \approx 1)');
set(bar1(4),'DisplayName','Normalized QueueTime (\alpha = 1, \gamma = 0)');

% Create legend
legend1 = legend(axes1,'show');
set(legend1,'Position',[0.1565 0.6254 0.348 0.2308]);

