save transparent .emf file from figure

조회 수: 10 (최근 30일)
Kenneth Kim
Kenneth Kim 2016년 3월 24일
편집: Kenneth Kim 2016년 5월 17일
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에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by