save transparent .emf file from figure

9 vues (au cours des 30 derniers jours)
Kenneth Kim
Kenneth Kim le 24 Mar 2016
Modifié(e) : Kenneth Kim le 17 Mai 2016
I'm using 2015b version and would like to save a transparent .emf file from Matlab plot. However, when I export .emf file, the background is white.(I know about copy options with transparency, however, want to save .fig files in a batch process and then save .emf files manually.) How can I sole this issue?

Réponse acceptée

Richard Quist
Richard Quist le 17 Mai 2016
Set the figure background Color to 'none' and the Inverthardcopy property to 'off' before calling the print command:
f = figure;
plot(rand(4));
set(f, 'Color', 'none', 'Inverthardcopy', 'off');
print(f, '-dmeta', 'transparent.emf');
  1 commentaire
Kenneth Kim
Kenneth Kim le 17 Mai 2016
Modifié(e) : Kenneth Kim le 17 Mai 2016
Richard,
This is a perfect answer that I've been looking for. I never tried to play with Inverthardcopy, which seems to be the key element. Thank you so much for your advice!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by