close all
clear ph
fontsize = 25;
for i = 1:6
    [ph(i,:) ah(i) fh(i) nn{i}] = netica_plot_beliefs(fullfile(fileparts(which(mfilename)), '..', 'netica', 'curvnet.dne'), i-1);
    n = max(get(ah(i), 'ylim'));
    figureStyle(@styleThesis, {'figure', 'position', [1 1 8 n+2]});
    set(findobj(fh(i), '-property', 'fontsize'), 'fontsize', fontsize)
    set(get(ah(i), 'title'), 'fontsize', fontsize)
    set(ah(i), 'box', 'off');
    tightenfigure(fh(i), 'insetfactor', [1 1.2 1 1]);
    fprintf('%s %.0f %.0f\n', nn{i}, 20, ceil(20*(n+2)/8)+1)
    print(fh(i), '-depsc2', fullfile('d:\heijer\sources\heijer\LaTeX\conferences\ICCE2012\presentation\figures\case12\', [nn{i} '.eps']))
end

