Exporting figure to EMF file type distorts image
65 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I am exporting figure plots to an EMF file to be used with Adobe Illustrator in the future. The plot looks fine when opened as a figure in matlab. However, when I export it to an EMF it becomes distorted.
Here is a screen shot of the plot in matlab (looks super pretty):
Here is a screen shot of the EMF file opened in Illustrator (looks super not pretty):
Specifically, all the colors are lighter or more transparent. The black is more of a gray. And the red and blue lines are transparent. Also, the tick marks on the y-axis don't line up with their labels.
The code I am using to save the figure is as follows.
fig = figure(1);
path = 'filepath_of_where_i_want_the_image';
filename = 'Length.emf';
saveas(fig, fullfile(path,filename));
I have many images to save, so I would prefer to use code than an automated method.
Is there a way to fix this problem? Or is it unavoidable? I am using R2017a.
Edit: I accidentally took a screen shot of different plots, but think the issue is pretty clear.
0 件のコメント
回答 (1 件)
Kiran Felix Robert
2020 年 11 月 3 日
Hi Vivek,
Does the change in figure appear only when you open it in Adobe illustrator? Have you tried opening it in MS Paint?
Also Try using the print function to save the figure in the EMF Format, this might solve the issue.
f = figure;
bar(x);
print -dmeta;
print(f,'File.emf','-dmeta')
Kiran Felix Robert
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!