save figure as .emf makes all objects transparent

6 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by