From a62e69cf395b42ded7c8e951cd71de1fed409df1 Mon Sep 17 00:00:00 2001
From: Willi Mutschler <willi@mutschler.eu>
Date: Wed, 15 Jan 2020 10:21:31 +0100
Subject: [PATCH] :bug: fix identification strength barplots for one parameter

---
 matlab/plot_identification.m | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/matlab/plot_identification.m b/matlab/plot_identification.m
index e534b43178..82c5cea21a 100644
--- a/matlab/plot_identification.m
+++ b/matlab/plot_identification.m
@@ -60,9 +60,9 @@ if SampleSize == 1
     mmm = (idehess.ide_strength_dMOMENTS);
     [ss, is] = sort(mmm);
     if ~all(isnan(idehess.ide_strength_dMOMENTS_prior))
-        bar(log([idehess.ide_strength_dMOMENTS(:,is)' idehess.ide_strength_dMOMENTS_prior(:,is)']))
+        bar(1:nparam,log([idehess.ide_strength_dMOMENTS(:,is)' idehess.ide_strength_dMOMENTS_prior(:,is)']))
     else
-        bar(log([idehess.ide_strength_dMOMENTS(:,is)' ]))
+        bar(1:nparam,log([idehess.ide_strength_dMOMENTS(:,is)' ]))
     end
     hold on
     plot((1:length(idehess.ide_strength_dMOMENTS(:,is)))-0.15,log([idehess.ide_strength_dMOMENTS(:,is)']),'o','MarkerSize',7,'MarkerFaceColor',[0 0 0],'MarkerEdgeColor','none')
@@ -106,9 +106,9 @@ if SampleSize == 1
 
     subplot(212)
     if ~all(isnan(idehess.deltaM_prior))
-        bar(log([idehess.deltaM(is) idehess.deltaM_prior(is)]))
+        bar(1:nparam, log([idehess.deltaM(is) idehess.deltaM_prior(is)]))
     else
-        bar(log([idehess.deltaM(is)]))
+        bar(1:nparam, log([idehess.deltaM(is)]))
     end
     hold on
     plot((1:length(idehess.deltaM(is)))-0.15,log([idehess.deltaM(is)']),'o','MarkerSize',7,'MarkerFaceColor',[0 0 0],'MarkerEdgeColor','none')
-- 
GitLab