Save .eps from command line different than saving by mouse?

조회 수: 17 (최근 30일)
Johannes Lange
Johannes Lange 2015년 10월 31일
댓글: Johannes Lange 2015년 10월 31일
Hello together,
I have an issue concerning saving eps figures and using them in texmaker/miktex. When I open a .fig and click on "save as" and then choose .eps, the resulting file can be converted by miktex. When I use the command line however
saveas(gcf,'test', 'epsc2'); ,
the files can not be converted. I tried different formats like eps, eps2 but none of them works. Could someone please tell me how I can export an .eps file from command line exactly the same way it is done by clicking on "save as..."?
Johannes

답변 (1개)

Jan
Jan 2015년 10월 31일
Try:
print(FigureHanlde, '-depsc2', '-r300', '-tiff', '-loose', FileName)
  댓글 수: 1
Johannes Lange
Johannes Lange 2015년 10월 31일
Thank you! Worked well but the frame around the legend was missing now. Removing -tiff solved it :)

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

카테고리

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