Exporting figure to EMF file type distorts image

65 ビュー (過去 30 日間)
Vivek Gupta
Vivek Gupta 2020 年 10 月 27 日
回答済み: Kiran Felix Robert 2020 年 11 月 3 日
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.

回答 (1 件)

Kiran Felix Robert
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')
Refer to the Print function documentation
Kiran Felix Robert

カテゴリ

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

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by