taken figuremaker from http://www.mathworks.com/matlabcentral/fileexchange/42012-figuremaker-publication-quality-figures-with-matlab.  added an output file - this is an example, don't do this in general.  ToDo: figure labels and correct handling of overlaps