matlab png保存爲eps 消除白邊

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章