save figure as eps from command line
이전 댓글 표시
Hi all,
my goal is to produce eps files from my figs from command line. I can do this by issuing a command like
print(sprintf('-f%d',fh),'-dpsc2',name);
where fh is the figure handle and of courese name is the outptu filename. If I get it right this is basically how saveas work. However the appearance of the eps I get is different from what is obtained by using the dialog box popping up when the "save as" item of the "file" menu is chosen in the figure window. Typically print and saveas seem to ignore the changes I have made to alter the basic look of the figure (things like axis ticks, ticklabels, fontsizes and so on). Would it be possible to give a window command reproducing exactly the behaviour of "save as" from the figure menu?
The problem is that I find the menu choice a bit annoying, because I always have to re-save-as ".fig", or otherwise I risk loosing the changes I possibly make after creating the eps. Indeed saving through the "floppy-disk" button in the menu apparently applies to the last format chosen when "saving as".
Thanks a lot for any help
Francesco
답변 (2개)
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!