MATLAB: How to export figures in EPS format with the same look as I see them on the screen

guiguisMATLABprinting

I would like to export of my figures from the command line so that they look like the same as how they would look on the MATLAB desktop.

Best Answer

This can be done using the 'InvertHardcopy' property of the figure. for example:
hfig = openfig('Filename.fig')
set(hfig,'InvertHardcopy','off')
print('-depsc2', '-loose','Filename.eps')