save figure as .emf makes all objects transparent

6 Ansichten (letzte 30 Tage)
Huijun Wang
Huijun Wang am 27 Mär. 2023
Beantwortet: Abhijeet am 3 Apr. 2023
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');

Akzeptierte Antwort

Abhijeet
Abhijeet am 3 Apr. 2023
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

Weitere Antworten (0)

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by