EPS figure created at the bottom of the page with while space at top

1 回表示 (過去 30 日間)
Amitava Guha
Amitava Guha 2015 年 8 月 28 日
コメント済み: Amitava Guha 2015 年 9 月 2 日
I am using Matlab version 2015a and having this issue with EPS plotting. The plot is generated at the bottom of the page with white space at the top. I am using the EPS file in a Latex document, and the figure is not visible then.
I am on a windows machine with Adobe Professional. However, I believe it is the same problem as mentioned here: http://www.mathworks.com/matlabcentral/answers/162283-why-is-the-figure-in-my-eps-file-generated-using-matlab-r2014b-in-the-wrong-position-and-with-extra
Is there a simple method to solve this issue. Setting the figure size manually will be a big hassle as I did not use figure handles to the figures in my previous codes and I do have a lot of plots.

採用された回答

Tim Jackman
Tim Jackman 2015 年 9 月 2 日
One possible method to resolve this issue would be to use the "-loose" parameter when writing the eps file. This should fix the problem at the expense of a little bit of the extra margins. For example:
figure;
ylabel('$$\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1+\sqrt{1}}}}}$$','Interpreter','latex');
print -deps bad.eps;
print -deps -loose good.eps;
  1 件のコメント
Amitava Guha
Amitava Guha 2015 年 9 月 2 日
This worked and your solution is very easy to implement as well. Really appreciate your help. Thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by