figure(2)
x=1:1:10;%x轴上的数据,第一个值代表数据开始,第二个值代表间隔,第三个值代表终止
% plot(x,itera(:,1) * 100,'--+','Color',[0 114/255 189/255],'LineWidth',2);hold on
% plot(x,itera(:,2) * 100,'--o','Color',[0.4660 0.6740 0.1880],'LineWidth',2); %线性,颜色,标记
plot(x(3:10),itera(3:10,1) * 100,'-+','Color',[0 114/255 189/255],'LineWidth',2);hold on
plot(x(3:10),itera(3:10,2) * 100,'-o','Color',[0.4660 0.6740 0.1880],'LineWidth',2); %线性,颜色,标记
axis([1,10,60,100]) %确定x轴与y轴框图大小
set(gca,'XTick',[1:1:10],'Fontname','Times new roman ' ,'FontWeight','bold','FontSize',13) %x轴范围1-6,间隔1
set(gca,'YTick',[0:10:100]) %y轴范围0-700,间隔100
%set(gca,'XTickLabel',{'5','10','15','20','30','40'},'Fontname','Times new roman ' ,'FontWeight','bold','FontSize',13 )%,
hl =legend({'DSC','Jaccard'},'FontSize',10); %右上角标注
set(hl,'box','off')
xlabel('number of iterations','Fontname','Times new roman ' ,'FontWeight','bold','FontSize',13 )
ylabel('performance/%','Fontname','Times new roman ' ,'FontWeight','bold','FontSize',13 )
box off
hold on
plot(x(1:3),itera(1:3,1) * 100,'--+','Color',[0 114/255 189/255],'LineWidth',2);
plot(x(1:3),itera(1:3,2) * 100,'--o','Color',[0.4660 0.6740 0.1880],'LineWidth',2); %线性,颜色,标记
hold off
tightInset = get(gca, 'TightInset');
position(1) = tightInset(1);
position(2) = tightInset(2);
position(3) = 1 - tightInset(1) - tightInset(3);
position(4) = 1 - tightInset(2) - tightInset(4);
set(gca, 'Position', position);
set(gcf,'color','White');
export_fig( h , '-eps' , '-m8.5', '-a4' , 'f8c_patch')
export_fig( h , '-pdf' , '-m8.5', '-a4' , 'f8c_patch')
tightInset = get(gca, 'TightInset');
position(1) = tightInset(1);
position(2) = tightInset(2);
position(3) = 1 - tightInset(1) - tightInset(3);
position(4) = 1 - tightInset(2) - tightInset(4);
set(gca, 'Position', position);
set(gcf,'color','White');
export_fig( h , '-eps' , '-m8.5', '-a4' , 'f8b_tree_num')
export_fig( h , '-pdf' , '-m8.5', '-a4' , 'f8b_tree_num')
h=figure(1)
imagesc(im);
axis off
axis image
% set(gcf,'paperpositionmode','auto');
tightInset = get(gca, 'TightInset');
position(1) = tightInset(1);
position(2) = tightInset(2);
position(3) = 1 - tightInset(1) - tightInset(3);
position(4) = 1 - tightInset(2) - tightInset(4);
set(gca, 'Position', position);
set(gcf,'color','White');
export_fig( h , '-eps' , '-m4', '-a4' , 'f6_v3')