Saved .eps images being chopped up?
7 次查看(过去 30 天)
显示 更早的评论
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
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!