Exporting Figure as Vector Content File

조회 수: 5 (최근 30일)
Anas Khan
Anas Khan 2023년 7월 11일
댓글: Anas Khan 2023년 7월 11일
I am on 2021b version trying to use the exportgraphics function to export my figure to a .eps vector graphics file for figure composition in Adobe Illustrator.
Below is the code I am using to accomplish this.
ax = gca;
exportgraphics(ax,'FileName.eps','ContentType','vector')
The issue I am having is the figure in the .eps file is missing components.
See below for what is expected:
Here is the .eps output of the export function:
So it looks like not only is the alpha of the patch objects altered, but the line objects are just not there. Everything else looked fine to me. How can I correct this? I have tried using export_fig from the fileshare but there are issues with M1 Mac compatibility: see issue #352 https://github.com/altmany/export_fig/issues/352

답변 (1개)

Parth Saraf
Parth Saraf 2023년 7월 11일
Hi,
Can you try doing similar to this code?
figure;
plot(1:10, rand(1,10));
exportgraphics(gcf, 'figure.eps', 'ContentType', 'vector')
Hope it helps!
  댓글 수: 1
Anas Khan
Anas Khan 2023년 7월 11일
Hi,
Thank you for your input. I actually already tried that. Same result. I also already visited the link you provided, which is where I found the exportgraphics function. I did not find anything that would be of help to me.

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

카테고리

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

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by