Saved .eps images being chopped up?

6 views (last 30 days)
Sarah
Sarah on 11 Oct 2016
Commented: Jen-Chun Hsiang on 2 Sep 2019
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 Comments
Xiaotao Yang
Xiaotao Yang on 21 Jul 2017
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 on 2 Sep 2019
Thank you. That works for me.

Sign in to comment.

Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!