save figure as eps from command line
Afficher commentaires plus anciens
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
Réponses (2)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!