指定颜色、线型与宽度、横纵坐标数值与标签大小
clo={‘k-’,‘k:’,‘k-.’,‘k–’,‘k-’};
lin=[‘2’,‘2’,‘2’,‘2’,‘5’];
c=[];
for i=1:1:5
c=char(clo(i));
plot(h1(i).h,c,‘LineWidth’, str2num(lin(i)));
hold on;
end
title(‘EWHM,z=0.8’,‘FontSize’,10);
xlabel(‘时间s’,‘FontSize’,10);
ylabel(‘失效率λ(t)’,‘FontSize’,10);
hl=legend(‘ξ=0,η=0,ν=0’,‘ξ=10,η=0,ν=0’,‘ξ=10,η=0.001,ν=0’,‘ξ=0,η=0,ν=2’,‘ξ=10,η=0.001,ν=2’);
% set(hl,‘NumColumns’,2);
set(hl,‘Box’,‘off’);
ylim([-5,30]);
set(gca,‘fontsize’,10);
scatter(x,y,100,55,‘filled’);
text(x,y,{id},‘HorizontalAlignment’,‘right’,‘fontsize’,16);