Skip to content
Snippets Groups Projects
Commit 4cd259ba authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

Fix plotting of measurement errors in non-MCMC case

Number of plots was wrongly computed
parent f021909d
No related branches found
No related tags found
No related merge requests found
...@@ -609,10 +609,10 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha ...@@ -609,10 +609,10 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha
if nvn if nvn
number_of_plots_to_draw = 0; number_of_plots_to_draw = 0;
index = []; index = [];
for i=1:n_varobs for obs_iter=1:n_varobs
if max(abs(measurement_error)) > 0.000000001 if max(abs(measurement_error(obs_iter,:))) > 0.0000001
number_of_plots_to_draw = number_of_plots_to_draw + 1; number_of_plots_to_draw = number_of_plots_to_draw + 1;
index = cat(1,index,i); index = cat(1,index,obs_iter);
end end
end end
if ~options_.nograph if ~options_.nograph
...@@ -627,7 +627,7 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha ...@@ -627,7 +627,7 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha
fh = dyn_figure(options_.nodisplay,'Name','Smoothed observation errors'); fh = dyn_figure(options_.nodisplay,'Name','Smoothed observation errors');
NAMES = []; NAMES = [];
if options_.TeX, TeXNAMES = []; end if options_.TeX, TeXNAMES = []; end
nstar0=min(nstar,number_of_plots_to_draw-(nbplt-1)*nstar); nstar0=min(nstar,number_of_plots_to_draw-(plt-1)*nstar);
if gend==1 if gend==1
marker_string{1,1}='-ro'; marker_string{1,1}='-ro';
marker_string{2,1}='-ko'; marker_string{2,1}='-ko';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment