Copy figure from matlab graph as svg

조회 수: 22 (최근 30일)
incredibles
incredibles 2025년 6월 28일
답변: Kautuk Raj 2025년 7월 3일
Hi. I'm currently using MATLAB 2025a. On previous versions, when I'm copying a figure as an SVG and paste it into MS word or Inkscape, the latex description in the axis is perfectly produced. But on the 2025a version, the positioning gets changed. How can I resolve this problem in SVG format? I prefer to use SVG than PNG or Tiff.
From matlab graph:
When exported to MS word or inkscape:
Thank you so much.
  댓글 수: 2
dpb
dpb 2025년 6월 28일
Provide the example as supporting info and submit an official support request. Mathworks is revising a lot of graphics stuff so nits are not unexpected, unfortunately. Reporting glitches will only help...eventually.
Anton Kogios
Anton Kogios 2025년 6월 29일
Not sure if this will resolve it but you could try exporting to an SVG file by saving the figure or using exportgraphics.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kautuk Raj
Kautuk Raj 2025년 7월 3일
I see that you are experiencing issues with LaTeX text positioning when copying figures as SVG from MATLAB 2025a into Word or Inkscape.
I suggest these two workarounds to get around with it:
  • Try exporting the figure using exportgraphics(gcf, 'figure.svg', 'ContentType', 'vector') instead of copy-paste. Refer to https://www.mathworks.com/help/matlab/ref/exportgraphics.html
  • If the problem persists, export as PDF (exportgraphics(gcf, 'figure.pdf', 'ContentType', 'vector')) and convert to SVG using Inkscape.
You can also consider reporting it to MathWorks Technical Support so they can address it in future updates.

카테고리

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

태그

제품


릴리스

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by