- 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.
save figure as .emf makes all objects transparent
6 views (last 30 days)
Show older comments
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');
0 Comments
Accepted Answer
Abhijeet
on 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.
Thanks
0 Comments
More Answers (0)
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!