plot and save figures WITH the white margin

8 views (last 30 days)
Razvan
Razvan on 25 Oct 2013
Answered: Jamie on 28 Oct 2013
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

Answers (1)

Jamie
Jamie on 28 Oct 2013
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

Products

Community Treasure Hunt

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

Start Hunting!