matlab png保存为eps 消除白边

 

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')

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值