フィルターのクリア

saveas or print in EPS

12 ビュー (過去 30 日間)
Mohammad Abouali
Mohammad Abouali 2014 年 10 月 9 日
回答済み: Jiawen Xie 2015 年 5 月 1 日
Hi,
I just upgraded to 2014b; While I like the new colormaps but it seems that some of the functions have changed their behavior. For example:
saveas(gcf,'test2.eps','epsc')
or its equivalent form using print command are no-longer behaving the same. The output file assumes a default paper size and it is no longer clipped to the screen size. If I choose png it works fine but with epsc has changed.
Any idea how to change this?
  1 件のコメント
Gideon simpson
Gideon simpson 2014 年 11 月 4 日
I'm having the same issue. And on OS X 10.9.4, when I open up the eps file it outputs, I get a font error. To fix the paper formatting error, I used hgexport, which seems to be a new function. I'm not sure how it's supposed to be different.

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

回答 (2 件)

Aditya
Aditya 2015 年 1 月 16 日
After spending 3 hours with saveas and print and failing miserably, I had success with hgexport . No issues what so ever. Also, manually saving as eps worked but that was not a practically solution as I was scanning through many folders and converting multiple files from fig to eps. Definitely a change in saveas or a bug.
The interesting part is that I used the eps files from saveas in my LaTeX document and it gave a white patch. On opening in illustrator and resaving as eps it would generate the right figure in the LaTeX document. Clearly, all the information is there but there seems to be some bug in the saveas command.
  1 件のコメント
Jiawen Xie
Jiawen Xie 2015 年 5 月 1 日
編集済み: Jiawen Xie 2015 年 5 月 1 日
I have the same problem of the white patch if eps files were generated by "saveas" function. The "print" function works for me.

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


Jiawen Xie
Jiawen Xie 2015 年 5 月 1 日
I think this is an old problem. I have had same issue with 2013a.
Use print function instead of saveas.
print('-depsc2', '-loose', 'test2.eps');
In 2013a, the eps file generated by 'saveas' and 'print' could both show correctly in LaTeX documents. I had problem with 2014b that the eps file generated by 'saveas' function will give a white patch in my LaTeX document. Only 'print' works now.

カテゴリ

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