%%%%%%%%%%%%%%%参数设置折线图:仅仅有F
close all
pr=‘TH_APR_F.xlsx’;
ar=xlsread(pr);
Result=[];
a=ar(:,1);
b=ar(:,2);
c=ar(:,2);
fontsize=32;
markersize=15;
linewidth=2;
plot(a,b,‘-’,‘MarkerSize’,markersize,‘Marker’,‘o’,‘linewidth’,linewidth,‘Color’,[0 0 1]);
% hold on;
% plot(a,c,‘-’,‘MarkerSize’,markersize,‘Marker’,‘v’,‘linewidth’,linewidth,‘Color’,[0 0.5 0]);
grid on;
set(gca,‘GridLineStyle’,‘–’,‘GridColor’,‘k’,‘fontsize’,11,‘GridAlpha’,0.5);
set(gca,‘XTick’,[0.23:0.02:0.33],‘fontname’,‘Times New Roman’,‘fontsize’,fontsize) %x轴范围,间隔
set(gca,‘YTick’,[0.8:0.05:1],‘fontname’,‘Times New Roman’,‘fontsize’,fontsize) %y轴范围,间隔
hold on;
plot(0.3,0.9339,‘o’,‘Markersize’,markersize,‘MarkerFaceColor’,‘red’);
% legend(‘F-score’,‘Default’,‘fontsize’,fontsize,‘Position’,[0.8,0.8,0.25,0.25]);
legend({‘F-score’,‘Default’},‘Position’,[0.365,0.3,0.25,0.1],‘fontsize’,fontsize);
ylim([0.8,1]);
xlim([0.23,0.33]);
% xlabel({‘Td’},‘fontname’,‘Times New Roman’,‘fontsize’,20) %x轴坐标描述
xlabel(‘
t
c
t_{c}
tc’,‘fontname’,‘Times New Roman’,‘FontSize’,fontsize,‘Interpreter’,‘latex’);
ylabel(‘F-score’,‘fontname’,‘Times New Roman’,‘fontsize’,fontsize) %y轴坐标描述
set (gcf,‘Position’,[300,300,650,480])
%%%%%%%%%%%%%%%%%%%%%%
legend({‘F-score’,‘Default’},‘Position’,[0.365,0.3,0.25,0.1],‘fontsize’,fontsize);