How to get transparent PNG file from FIG file?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 4 de Dic. de 2018
Respondida: MathWorks Support Team
el 9 de En. de 2019
How to get transparent PNG file from FIG file?
Respuesta aceptada
MathWorks Support Team
el 19 de Jun. de 2019
1. Download the "export_fig" functions from the File Exchange link:
Note that this is a 3rd party File Exchange function, and not officially supported (or tested) by MathWorks.
2. Set the 'Color' property of both figure and axes objects to 'none':
>> plot(1:10)
>> f = gcf;
>> a = gca;
>> f.Color = 'none';
>> a.Color = 'none';
3. Use the "export_fig" function with -transparent' flag to generate the PNG file:
>> export_fig -transparent
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!