save transparent .emf file from figure

14 次查看(过去 30 天)
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?

采纳的回答

Richard Quist
Richard Quist 2016-5-17
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 个评论
Kenneth Kim
Kenneth Kim 2016-5-17
编辑:Kenneth Kim 2016-5-17
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!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by