tfix call raising figures - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
 (HTM) git clone git://src.adamsgaard.dk/cosmo
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3250a553d08e2339a4202ba505f957eb778f5581
 (DIR) parent bb3d54aa230ee29a44e58f72a841b4638e3d09b8
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Thu, 27 Aug 2015 16:15:14 +0200
       
       fix call raising figures
       
       Diffstat:
         M matlab/file_scanner_mcmc_starter.m  |       3 +++
         M matlab/generate_plots.m             |       2 +-
       
       2 files changed, 4 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_starter.m
       t@@ -90,6 +90,9 @@ while 1
                %CompareWalks2(Ss, save_file)
                generate_plots(Ss, save_file, graphics_formats, show_figures);
                
       +        % close all figures
       +        close all;
       +        
                % delete or archive the file so it is not processed again
                %delete(infile)
                %movefile(infile, archivefolder);
 (DIR) diff --git a/matlab/generate_plots.m b/matlab/generate_plots.m
       t@@ -205,7 +205,7 @@ if strcmp(show_figures, 'on')
        end
        
        for i=1:4
       -    figure_save_multiformat(figure(fh(i)), ...
       +    figure_save_multiformat(fh(i), ...
                strcat(save_file, '-', num2str(i)), ...
                formats);
        end