plot and save figures WITH the white margin

조회 수: 15(최근 30일)
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');
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?


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


Community Treasure Hunt

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

Start Hunting!

Translated by