plot and save figures WITH the white margin

9 ビュー (過去 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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by