Issues with .emf and .svg export to word (for 3D surface plots)

조회 수: 13 (최근 30일)
Svyatoslav Yablonsky
Svyatoslav Yablonsky 2019년 5월 19일
답변: Richard Quist 2021년 11월 28일
I can not export vector graphics properly to MS word. My 3D surface plots are grainy and not scalable:
Unbenannt.JPG
It works perfectly with normal 2D plots though:
Unbenannt2.JPG
I've tried to change Renderer from 'opengl' to 'painters' but it doesn't help. I've tried to print my document and also exported it to PDF to check, if the problem maybe only appers on the screen, yet it looks as bad printed on paper, as it does in word.
What could I try next?

답변 (1개)

Richard Quist
Richard Quist 2021년 11월 28일
You don't say how you are exporting but the following should work, assuming fig is the handle to your figure:
% in R2020a or later - create file in current directory:
exportgraphics(fig, 'output.emf', 'ContentType', 'vector');
% in R2020a or later - copy to clipboard
copygraphics(fig, 'ContentType', 'vector');
% You can also use the print command to create the file:
print(fig, '-dmeta', '-painters', 'output.emf');
% ... or copy to the clipboard
print(fig, '-dmeta', '-painters');
exportgraphics (and copygraphics) were introduced in R2020a. exportgraphics does not currently support SVG format so you would need to use the print command if that is the output format you want.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by