% epsPrint - output figure in eps format

%% Increase Font size
% useful stuff
FS = 'FontSize';
fs = 12;
Children = {'Title', 'XLabel', 'YLabel', 'ZLabel'};

% handle to current figure and axes
ha = get(gcf,'Children');

% loop over axes and increase font for ticks, x,y,z-label and title
for hc = ha'
   set(hc, FS, fs);
   
   for kk=1:length(Children)
       ht = get(hc,Children{kk});
       set(ht, FS, fs);
   end
end

figfilename = strcat('../figures/', ScriptName, '.eps');
print('-depsc', '-painters', figfilename);
