save figure as .emf makes all objects transparent

5 ビュー (過去 30 日間)
Huijun Wang
Huijun Wang 2023 年 3 月 27 日
回答済み: Abhijeet 2023 年 4 月 3 日
I plot more than one object (e.g lines and shades), and make one of them transparent (e.g the shade), then export the figure as .emf. When I open .emf file in Adobe illustrator for further edition, the line will become transparent as well. Is there anything I can do or change to fix this?
data = [1 2 5 3 7];
figure; hold on;
fill([1:5 flip(1:5)],[data+0.5 flip(data-0.5)],[0.5 0.5 0.5],'FaceAlpha',0.5,'EdgeAlpha',0);
plot(1:5,data,'Color',[0.5 0.5 0.5],'LineWidth',2);
saveas(gcf,'shade','emf');

採用された回答

Abhijeet
Abhijeet 2023 年 4 月 3 日
Hi,
Yes, this is a common issue when exporting figures with transparency to .emf format. The problem is that the transparency is not well-supported in the .emf format and is usually interpreted differently by different software applications.
  • One possible solution is to use a different file format that supports transparency better, such as PNG or PDF.
  • Another option is to flatten the transparency of the figure before exporting it, which can be done using the "flatten" or "rasterize" options in the exporting dialog box or using the "export_fig" function in MATLAB.
Thanks

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by