Figure does not retain its transparency after saving it as .png
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hey all! I have plotted a graph where I've made the background transparent. Now while saving the graph as a .png file, the transparency is not retained and shows as white instead. Is there a way to save the graph while retaining its transparency? Thanks in advance!![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/688573/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/688573/image.png)
4 commentaires
Jan
le 20 Juil 2021
Try export_fig or catching the screen by getframe and define the 'TransparentColor' as the background color.
Réponses (0)
Voir également
Catégories
En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!