pes2014-debug2-laplace/CreateMaxErrorFigure.m

41 lines
1.2 KiB
Matlab
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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','电压幅值');
set(bar1(2),...
'FaceColor',[0.941176474094391 0.941176474094391 0.941176474094391],...
'DisplayName','电压相角');
% Create xlabel
xlabel('节点号','FontSize',12,'FontName','黑体');
% Create ylabel
ylabel('最大绝对偏差/(p.u弧度)','FontSize',12,'FontName','黑体');
% Create legend
legend1 = legend(axes1,'show');
set(legend1,...
'Position',[0.367488931056294 0.487351190476188 0.115749525616698 0.09375],...
'FontSize',12,...
'FontName','黑体');