How to get transparent PNG file from FIG file?

1 visualización (últimos 30 días)
How to get transparent PNG file from FIG file?

Respuesta aceptada

MathWorks Support Team
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

Más respuestas (0)

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by