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

17 Ansichten (letzte 30 Tage)
Johannes Lange
Johannes Lange am 31 Okt. 2015
Kommentiert: Johannes Lange am 31 Okt. 2015
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

Antworten (1)

Jan
Jan am 31 Okt. 2015
Try:
print(FigureHanlde, '-depsc2', '-r300', '-tiff', '-loose', FileName)
  1 Kommentar
Johannes Lange
Johannes Lange am 31 Okt. 2015
Thank you! Worked well but the frame around the legend was missing now. Removing -tiff solved it :)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by