pes2014-basic/CreateMaxErrorFigure.m

41 lines
1.2 KiB
Mathematica
Raw Permalink Normal View History

function createfigure(ymatrix1)
%CREATEFIGURE(YMATRIX1)
% YMATRIX1: bar matrix data
% Auto-generated by MATLAB on 11-Feb-2015 21:08:10
% Create figure
figure1 = figure('Color',[1 1 1]);
% Create axes
axes1 = axes('Parent',figure1,...
'XTick',[0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 35],...
'Position',[0.127153700189753 0.112232142857143 0.430721062618596 0.385535714285714],...
'FontName','Times New Roman');
% Uncomment the following line to preserve the X-limits of the axes
xlim(axes1,[1 35]);
% Uncomment the following line to preserve the Y-limits of the axes
ylim(axes1,[0 0.0021]);
hold(axes1,'all');
% Create multiple lines using matrix input to bar
bar1 = bar(ymatrix1,'BarWidth',1,'Parent',axes1);
set(bar1(1),'FaceColor',[0 0 0],'DisplayName','<EFBFBD><EFBFBD>ѹ<EFBFBD><EFBFBD>ֵ');
set(bar1(2),...
'FaceColor',[0.941176474094391 0.941176474094391 0.941176474094391],...
'DisplayName','<EFBFBD><EFBFBD>ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
% Create xlabel
xlabel('<EFBFBD>ڵ<EFBFBD><EFBFBD><EFBFBD>','FontSize',12,'FontName','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
% Create ylabel
ylabel('<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƫ<EFBFBD><EFBFBD>/(p.u<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)','FontSize',12,'FontName','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
% Create legend
legend1 = legend(axes1,'show');
set(legend1,...
'Position',[0.367488931056294 0.487351190476188 0.115749525616698 0.09375],...
'FontSize',12,...
'FontName','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');