From c5d131b3ab3aac173aa076a48b5331f90354568b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= <stepan@adjemian.eu> Date: Fri, 29 May 2020 12:03:25 +0200 Subject: [PATCH] Bug fix. --- matlab/plot_contributions.m | 1 + 1 file changed, 1 insertion(+) diff --git a/matlab/plot_contributions.m b/matlab/plot_contributions.m index ce6725c74d..9f22e21be0 100644 --- a/matlab/plot_contributions.m +++ b/matlab/plot_contributions.m @@ -189,6 +189,7 @@ cc = contribution(:,2:end); ccneg = cc(:,1:length(vnames)); ccneg(ccneg>=0) = nan; ccpos = cc(:,1:length(vnames)); ccpos(ccpos<0) = nan; H = bar(1:ds.nobs, ccneg, 'stacked'); +set(gca,'ColorOrderIndex',1); B = bar(1:ds.nobs, ccpos, 'stacked'); line_ = plot(1:ds.nobs, contribution(:,1), '-r', 'linewidth', 2); hold off -- GitLab