%% 寻找原始数据位置
[order,location1]=sort(data(:,1),'ascend');
[~,location2]=sort(location1,'ascend');
[order_1,location_1]=sort(data(:,3),'ascend');
[order_2,location_2]=sort(data(:,5),'ascend');
%%
pre_1=data(location_1,4);
% pre_1=pre_1(location2);
reall_1=order_1(location2);
pre_2=data(location_2,6);
% pre_2=pre_2(location2);
% reall_2=order_2(location2);
zhijie=data(location1,2);
%%
figure
plot(zhijie ,order,'db','LineWidth',1)
hold on
plot(pre_1,order,'sc','LineWidth',1)
hold on
plot(pre_2 ,order,'om','LineWidth',1)
hold on
plot([0 160],[0 160],'--k','LineWidth',1)
set(gca,'fontsize',18)
xlabel('\fontname{Times New Roman}Predicted value\fontname{Times New Roman}/MW','FontWeight','bold','FontSize',18,'LineWidth',0.5)
ylabel('\fontname{Times New Roman}Actual value\fontname{Times New Roman}/MW','FontWeight','bold','FontSize',18,'LineWidth',0.5)
label=legend('\fontname{Times New Roman}None cluster','\fontname{Times New Roman}First cluster','\fontname{Times New Roman}Second cluster','location','best');
set(label,'Fontname', 'Times New Roman','FontWeight','bold','FontSize',18,'LineWidth',0.5)
set(gca,'FontName','Times New Roman','linewidth',1.8)
set(gca, 'box', 'off')
set(gca,'LooseInset',get(gca,'TightInset'))