把画图的几个参数修改了一下。
Signed-off-by: dugg@lab-desk <dugg@lab-desk>
This commit is contained in:
parent
a09d642080
commit
6b24827aee
|
|
@ -6,83 +6,87 @@ function createfigure(X1, YMatrix1, YMatrix2, YMatrix3, YMatrix4)
|
|||
% YMATRIX3: matrix of y data
|
||||
% YMATRIX4: matrix of y data
|
||||
|
||||
% Auto-generated by MATLAB on 11-Feb-2015 16:31:59
|
||||
% Auto-generated by MATLAB on 11-Mar-2015 20:41:09
|
||||
|
||||
% Create figure
|
||||
figure1 = figure('Color',[1 1 1]);
|
||||
|
||||
% Create axes
|
||||
axes1 = axes('Parent',figure1,'XTick',[1 4 7 10 13 16 19 22 25 28 31 33],...
|
||||
'Position',[0.140663507109006 0.572508000217951 0.537061611374407 0.365998852384935],...
|
||||
axes1 = axes('Parent',figure1,'XTick',[4 7 10 13 16 19 22 25 28 31 33],...
|
||||
'Position',[0.115147103706819 0.314443484088918 0.537061611374407 0.365998852384935],...
|
||||
'FontName','Times New Roman');
|
||||
% Uncomment the following line to preserve the X-limits of the axes
|
||||
% xlim(axes1,[1 33]);
|
||||
hold(axes1,'all');
|
||||
|
||||
% Create multiple lines using matrix input to plot
|
||||
plot1 = plot(X1,YMatrix1,'Parent',axes1,'LineStyle',':','Color',[0 0 0]);
|
||||
set(plot1(1),'Marker','diamond','DisplayName','情形A');
|
||||
set(plot1(2),'Marker','square','DisplayName','情形B');
|
||||
set(plot1(3),'Marker','o','DisplayName','情形C');
|
||||
plot1 = plot(X1,YMatrix1,'Parent',axes1,'Marker','.','LineStyle',':');
|
||||
set(plot1(1),'DisplayName','情形A','Color',[0 0 0]);
|
||||
set(plot1(2),'Color',[0 0.498039215803146 0],'DisplayName','情形B');
|
||||
set(plot1(3),'DisplayName','情形C');
|
||||
|
||||
% Create xlabel
|
||||
xlabel('节点号','FontName','黑体');
|
||||
xlabel('节点号','FontSize',11);
|
||||
|
||||
% Create ylabel
|
||||
ylabel('偏差/p.u','FontName','Times New Roman');
|
||||
|
||||
% Create axes
|
||||
axes2 = axes('Parent',figure1,'XTick',[2 5 8 11 14 17 20 23 26 29 32],...
|
||||
'Position',[0.143033175355449 0.120301205914361 0.537914691943128 0.365998852384935],...
|
||||
axes2 = axes('Parent',figure1,'XTick',[4 7 10 13 16 19 22 25 28 31 33],...
|
||||
'Position',[0.834048901507269 0.363093241598628 0.537914691943128 0.365998852384935],...
|
||||
'FontName','Times New Roman');
|
||||
% Uncomment the following line to preserve the X-limits of the axes
|
||||
% xlim(axes2,[2 33]);
|
||||
% xlim(axes2,[1 33]);
|
||||
hold(axes2,'all');
|
||||
|
||||
% Create multiple lines using matrix input to plot
|
||||
plot2 = plot(X1,YMatrix3,'Parent',axes2,'LineStyle',':','Color',[0 0 0]);
|
||||
set(plot2(1),'Marker','diamond','DisplayName','算例A');
|
||||
set(plot2(2),'Marker','square','DisplayName','算例B');
|
||||
set(plot2(3),'Marker','o','DisplayName','算例C');
|
||||
plot2 = plot(X1,YMatrix2,'Parent',axes2,'Marker','.','LineStyle',':');
|
||||
set(plot2(1),'DisplayName','算例A','Color',[0 0 0]);
|
||||
set(plot2(2),'Color',[0 0.498039215803146 0],'DisplayName','算例B');
|
||||
set(plot2(3),'DisplayName','算例C');
|
||||
|
||||
% Create xlabel
|
||||
xlabel('节点号','FontName','Times New Roman');
|
||||
|
||||
% Create ylabel
|
||||
ylabel('相对偏差%','FontName','Times New Roman');
|
||||
ylabel('偏差/rad','FontName','Times New Roman');
|
||||
|
||||
% Create title
|
||||
title('有功');
|
||||
title('相角','FontName','Times New Roman');
|
||||
|
||||
% Create axes
|
||||
axes3 = axes('Parent',figure1,...
|
||||
'XTickLabel',{'1','4','7','10','13','16','19','22','25','28','31','33'},...
|
||||
'XTick',[1 4 7 10 13 16 19 22 25 28 31 33],...
|
||||
'Position',[0.440758293838865 0.574607379571982 0.537914691943128 0.365998852384935]);
|
||||
'XTickLabel',{'4','7','10','13','16','19','22','25','28','31','33'},...
|
||||
'XTick',[4 7 10 13 16 19 22 25 28 31 33],...
|
||||
'Position',[0.929411860358798 0.568558992475202 0.537914691943128 0.365998852384935]);
|
||||
% Uncomment the following line to preserve the X-limits of the axes
|
||||
% xlim(axes3,[1 33]);
|
||||
hold(axes3,'all');
|
||||
|
||||
% Create multiple lines using matrix input to plot
|
||||
plot3 = plot(X1,YMatrix2,'Parent',axes3,'LineStyle',':','Color',[0 0 0]);
|
||||
set(plot3(1),'Marker','diamond','DisplayName','情形A');
|
||||
set(plot3(2),'Marker','square','DisplayName','情形B');
|
||||
set(plot3(3),'Marker','o','DisplayName','情形C');
|
||||
plot3 = plot(X1,YMatrix3,'Parent',axes3,'Marker','.','LineStyle',':');
|
||||
set(plot3(1),'DisplayName','情形A','Color',[0 0 0]);
|
||||
set(plot3(2),'Color',[0 0.498039215803146 0],'DisplayName','情形B');
|
||||
set(plot3(3),'DisplayName','情形C');
|
||||
|
||||
% Create xlabel
|
||||
xlabel('节点号');
|
||||
|
||||
% Create ylabel
|
||||
ylabel('偏差/弧度');
|
||||
ylabel('相对偏差%');
|
||||
|
||||
% Create axes
|
||||
axes4 = axes('Parent',figure1,'XTick',[2 5 8 11 14 17 20 23 26 29 32],...
|
||||
'Position',[-0.490853080568712 -0.0598281717337482 0.537914691943128 0.365998852384935]);
|
||||
axes4 = axes('Parent',figure1,'XTick',[4 7 10 13 16 19 22 25 28 31 33],...
|
||||
'Position',[0.918232282855782 0.0199442763883023 0.537914691943128 0.365998852384935]);
|
||||
% Uncomment the following line to preserve the X-limits of the axes
|
||||
% xlim(axes4,[2 33]);
|
||||
% xlim(axes4,[1 33]);
|
||||
hold(axes4,'all');
|
||||
|
||||
% Create multiple lines using matrix input to plot
|
||||
plot4 = plot(X1,YMatrix4,'Parent',axes4,'LineStyle',':','Color',[0 0 0]);
|
||||
set(plot4(1),'Marker','diamond','DisplayName','算例A');
|
||||
set(plot4(2),'Marker','square','DisplayName','算例B');
|
||||
set(plot4(3),'Marker','o','DisplayName','算例C');
|
||||
plot4 = plot(X1,YMatrix4,'Parent',axes4,'Marker','.','LineStyle',':');
|
||||
set(plot4(1),'DisplayName','算例A','Color',[0 0 0]);
|
||||
set(plot4(2),'Color',[0 0.498039215803146 0],'DisplayName','算例B');
|
||||
set(plot4(3),'DisplayName','算例C');
|
||||
|
||||
% Create xlabel
|
||||
xlabel('节点号');
|
||||
|
|
@ -93,23 +97,23 @@ ylabel('
|
|||
% Create legend
|
||||
legend1 = legend(axes1,'show');
|
||||
set(legend1,...
|
||||
'Position',[0.155301294649576 0.633902089695378 0.112559241706161 0.12206572769953],...
|
||||
'Position',[0.128348837738379 0.375714523437614 0.11543134872418 0.122311827956989],...
|
||||
'FontName','黑体');
|
||||
|
||||
% Create legend
|
||||
legend2 = legend(axes2,'show');
|
||||
set(legend2,...
|
||||
'Position',[0.533220206544619 0.178635859349444 0.112559241706161 0.12206572769953],...
|
||||
'Position',[0.848559295955351 0.401143554582401 0.11543134872418 0.122311827956989],...
|
||||
'FontName','黑体');
|
||||
|
||||
% Create legend
|
||||
legend3 = legend(axes3,'show');
|
||||
set(legend3,...
|
||||
'Position',[0.450281817919025 0.807479462339755 0.117298578199052 0.12206572769953],...
|
||||
'Position',[0.942299132833744 0.801308025114244 0.120291616038882 0.122311827956989],...
|
||||
'FontName','黑体');
|
||||
|
||||
% Create legend
|
||||
legend4 = legend(axes4,'show');
|
||||
set(legend4,...
|
||||
'Position',[-0.098296381133102 -0.0539564029130473 0.117298578199052 0.122065727699531]);
|
||||
'Position',[0.933836813310721 0.249483317660918 0.120291616038882 0.122311827956989]);
|
||||
|
||||
|
|
|
|||
2
OPF.m
2
OPF.m
|
|
@ -396,7 +396,7 @@ figure('Name','
|
|||
calTime=[70.16 29.68; 68.48 31.661; 65.156 30.08;];
|
||||
bar(calTime,'stacked');
|
||||
% figure();
|
||||
% DeviationFigure(1:33,[CaseAREV;CaseBREV;CaseCREV],[CaseAREA;CaseBREA;CaseCREA],[CaseAREP,CaseBREP,CaseCREP],[CaseAREQ,CaseBREQ,CaseCREQ]);%,[CaseAREA;CaseBREA;CaseCREA],[CaseAREV;CaseBREV;CaseCREV],[CaseAREV;CaseBREV;CaseCREV]);
|
||||
% DeviationFigure(2:33,[CaseAREV(2:end);CaseBREV(2:end);CaseCREV(2:end)],[CaseAREA(2:end);CaseBREA(2:end);CaseCREA(2:end)],[CaseAREP(2:end),CaseBREP(2:end),CaseCREP(2:end)],[CaseAREQ(2:end),CaseBREQ(2:end),CaseCREQ(2:end)]);%,[CaseAREA;CaseBREA;CaseCREA],[CaseAREV;CaseBREV;CaseCREV],[CaseAREV;CaseBREV;CaseCREV]);
|
||||
% VoltBar(voltBarCaseAX,voltBarCaseAY,voltBarCaseBX,voltBarCaseBY,voltBarCaseCX,voltBarCaseCY);
|
||||
% AngelBar(angelBarCaseAX,angelBarCaseBY,angelBarCaseCX,angelBarCaseAY,angelBarCaseBX,angelBarCaseCY);
|
||||
% PDBar(PDBarCaseAX,PDBarCaseAY,PDBarCaseBX,PDBarCaseBY,PDBarCaseCX,PDBarCaseCY);
|
||||
|
|
|
|||
Loading…
Reference in New Issue