finalPF = load('C102_100_finalPF.txt');
NSGAII_H = load('NSGAII-H.txt');
NSGAII_R = load('NSGAII-R.txt');
scatter3(finalPF(:,1),finalPF(:,2),finalPF(:,3),'r', 'filled');
hold on
scatter3(NSGAII_H(:,1),NSGAII_H(:,2),NSGAII_H(:,3),'b', 'filled','MarkerFaceAlpha',.2);
hold on
scatter3(NSGAII_R(:,1),NSGAII_R(:,2),NSGAII_R(:,3),'c', 'filled','MarkerFaceAlpha',.2);
x1 = xlabel('The energy consumption');
x2 = ylabel('Total travelling time');
zlabel('Customer satisfaction');
set(x1,'Rotation',10);
set(x2,'Rotation',-10);
legend('finalPF','INSGAII-H','INSGAII-R','location','NorthEast') %可依次设置成你想要的名字
% set(gca,'FontName','Times New Roman') % 设置字体为新罗马
matlab figure显示的常用操作
最新推荐文章于 2022-10-24 11:12:52 发布