Save figure in Matlab without borders
22 ビュー (過去 30 日間)
古いコメントを表示
I am experiencing several troubles in exporting figures in matlab. Typically I save figures in eps format and then I try to convert them in pdf using eps2pdf. The results is a figure with a huge white border around. How can I remove it and get a proper figure? I tried with
set(gca,'LooseInset',get(gca,'TightInset'));
with commands:
export_fig
print
Without any success. Unfortunately if I try
system('pdfcrop .... ')
does not work in mac, it returns the error
>> system('pdfcrop')
/bin/bash: pdfcrop: command not found
Nevertheless pdfcrop is installed because if I launch it from the terminal it works fine and the removes the borders correctly.
0 件のコメント
採用された回答
その他の回答 (1 件)
thomas weldon
2018 年 6 月 21 日
Try this: fig=gcf;ax=fig.CurrentAxes;fig.Color='w';fig.OuterPosition=fig.InnerPosition;
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!