Borrar filtros
Borrar filtros

save figure as .emf makes all objects transparent

4 visualizaciones (últimos 30 días)
Huijun Wang
Huijun Wang el 27 de Mzo. de 2023
Respondida: Abhijeet el 3 de Abr. de 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');

Respuesta aceptada

Abhijeet
Abhijeet el 3 de Abr. de 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

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by