Shock decomposition plot (solved)

Hi everyone,

I found manually plotting historical shock decomposition using Matlab command: bar(matrix, ‘stacked’) results in a slightly different graph compared to that of Dynare generated plot and that of plotted by Excel.

I use writexls option to export shock decomposition data to excel. I then plot in excel vs. Dynare plots generated by shock_decomposition vs. plots using oo_.shock_decomposition data and Matlab bar(…, ‘stacked’). The first two are identical but different from the last.

Does anyone experience it?

Many thanks.

Please provide an example. How different are the results? Are you sure you are plotting the right order etc when you do a bar graph in Matlab?