Annoying behavior saving eps figures in MATLAB 2014

3 ビュー (過去 30 日間)
Leonardo
Leonardo 2014 年 11 月 22 日
回答済み: Ilja Maljutenko 2016 年 7 月 11 日
Life was good before I upgraded to MATLAB 2014. I had a script which plotted and saved multiple figures in .eps format. The file sizes were about 200k. I upgraded to MATLAB 2014, now the same script produces garbage: the figures have enormous white space page borders around them, plus the file sizes have exploded to 6 MB ea. I've spent hours reading these forums looking for solutions, and none of them work.
I'm running on 2013 MacBook Air with Yosemite.
  1 件のコメント
John Ho
John Ho 2014 年 11 月 26 日
編集済み: John Ho 2014 年 11 月 26 日
Also looking for a solution to this extremely annoying problem.
Specifically, I often need to save the figure generated by contourf() to eps in order to edit it on vector illustration software. This worked beautifully prior to MATLAB R2014b. The result now is a large file that seems to "grid" the image so that the file size is enormous.

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

回答 (4 件)

Doug Hull
Doug Hull 2014 年 11 月 26 日
Please send the specifics of your case, code and old and new outputs, to www.mathworks.com/support
Without more details, it is hard to say what is happening. Sending this to support will get you going again as fast as possible.

Henrik
Henrik 2014 年 11 月 27 日
I don't know if this will solve the issue with the file size, but for me at least it solved the problem with white space outside the figure. Try to add this to the start of your script (or startup.m).
set(0,'defaultfigurepaperpositionmode','auto');

Leonardo
Leonardo 2014 年 12 月 6 日
Henrik: That didn't work for me. Thank you, though.
Doug: To reproduce the problem, do the following:
figure;
plot(randn(1,100));
print('-depsc', 'test.eps')
I would attach the resulting eps file, but the MathWorks forum does not allow me to upload a *.eps file.
In any case, when I run that code and open the eps file in Preview (Mac OS X built-in viewer), it shows the figure at the bottom left corner of a 8.5 x 11" standard page. There is needless white space around the figure. Running this same code in Matlab 2012a doesn't do this.

Ilja Maljutenko
Ilja Maljutenko 2016 年 7 月 11 日
So far external python script have been only solution to join up patches in eps files.
Overall it seems to be new acceptable format for vector graphics -.-

カテゴリ

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