Saved .eps images being chopped up?

6 ビュー (過去 30 日間)
Sarah
Sarah 2016 年 10 月 11 日
コメント済み: Jen-Chun Hsiang 2019 年 9 月 2 日
Sometime in the last 24 to 48 hours, MATLAB figures saved in .eps format and subsequently opened in Adobe Illustrator have begun behaving badly-- when I attempt to resize or even simply copy/paste them, the image is split into pieces and those pieces are re-arranged-- I've put screen captures below for reference. Files saved before Monday, 10/10/16 do not have this problem. I do not believe this to be an Illustrator issue since this distortion happens even when the .eps file is transferred to a different computer. The error is also present only in files created with R2016a: I created .eps files with the same data set on the same computer in R2014a and did not experience this problem when I opened them in Illustrator.
Before:
After:
As you can see, this only affects the data portion of the image-- the stuff within the axes-- but not the axis ticks or tick labels or colorbar.
Here is the code I used to generate the figure:
figure(1), clf, imagesc(sample_data); axis equal tight xy; a=gca; caxis([0 6000]);
a.FontSize=16; a.XTickLabels={'10','20','30','40','50'}; a.YTickLabels={'10','20','30','40','50','60','70','80'};
I then (manually) use the file menu to save the figure as a .eps image.
Has anyone else noticed this or had a similar problem? Does anyone have suggestions for fixing it? I have already tried uninstalling and reinstalling both MATLAB and Illustrator to see whether that would resolve the issue. I would rather not have to discontinue use of the .eps format, but I'm more than willing to hear suggestions for workarounds. Thanks!
  2 件のコメント
Xiaotao Yang
Xiaotao Yang 2017 年 7 月 21 日
I had the same problem. I found a way to workaround this issue. You can save the figure in Matlab to *.svg (scaled vector graphics) format. Then you can either other it using Illustrator or place it into Illustrator. This way works perfectly on my side. Hope this helps you and other people encountering the same issue.
Jen-Chun Hsiang
Jen-Chun Hsiang 2019 年 9 月 2 日
Thank you. That works for me.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by