Wednesday, January 25, 2012

Making MATLAB figures prettier

Changing the default line style (e.g. for printing in black-and-white):
set(0,'DefaultAxesLineStyleOrder',{'-','--',':'})
set(0,'DefaultAxesColorOrder',[0 0 0])

For dotted lines exported to .eps:
http://www.mathworks.com/matlabcentral/fileexchange/15743-fix-dashed-and-dotted-lines-in-eps-export
Usage:
print -depsc myfigure.eps
fix_dottedline('myfigure.eps')

More to come...

No comments:

Post a Comment