plot and save figures WITH the white margin

조회 수: 8 (최근 30일)
Razvan
Razvan 2013년 10월 25일
답변: Jamie 2013년 10월 28일
Hi, When I save the figures with the save button from the figure's toolbar I always get an EPS file WITH the a white margin around the figure. This actually is useful for me because when I have to align multiple panels in Illustrator this becomes piece of cake. But because I want to save many figures in an automatic way I use the following code which doesn't retain the white margins:
set(FigHandle, 'PaperPositionMode', 'auto')
print(FigHandle, '-depsc', '-painters', 'name.eps');
close(FigHandle)
This removes the white margin and aligning the panels in the end is more difficult. Could you please tell me how I can keep the white margins when I save the figures with the print command?
Thanks,
Razvan

답변 (1개)

Jamie
Jamie 2013년 10월 28일
Hi Razvan,
Its been a while but I believe the width of the margin is determined by the PaperSize propery.
If you open the figure GUI you should be to play aroung with the properties to determine the ideal widths / size
figure >> file >> print preview

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by