Save figure in Matlab without borders
조회 수: 58 (최근 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!