Octave compatibility fixes in graph decomposition
parent
b2c554623f
commit
13ce918612
|
@ -189,7 +189,7 @@ for j=1:nvar
|
||||||
hold on
|
hold on
|
||||||
ht = text(0.3,y1+0.3*height,labels(i,:),'Interpreter','none');
|
ht = text(0.3,y1+0.3*height,labels(i,:),'Interpreter','none');
|
||||||
hold on
|
hold on
|
||||||
if interactive & (~isoctave & use_shock_groups)
|
if interactive && (~isoctave && use_shock_groups)
|
||||||
mydata.fig_name = DynareOptions.plot_shock_decomp.fig_name(2:end);
|
mydata.fig_name = DynareOptions.plot_shock_decomp.fig_name(2:end);
|
||||||
mydata.use_shock_groups = DynareOptions.plot_shock_decomp.use_shock_groups;
|
mydata.use_shock_groups = DynareOptions.plot_shock_decomp.use_shock_groups;
|
||||||
mydata.shock_group = shock_groups.(shock_ind{i});
|
mydata.shock_group = shock_groups.(shock_ind{i});
|
||||||
|
|
|
@ -166,7 +166,7 @@ for j=1:nvar
|
||||||
ineg=zz<0;
|
ineg=zz<0;
|
||||||
hax = subplot(nrow,ncol,i); set(gca,'box','on')
|
hax = subplot(nrow,ncol,i); set(gca,'box','on')
|
||||||
hbar = bar(x(2:end),(zz.*ipos)','stacked','FaceColor','flat');
|
hbar = bar(x(2:end),(zz.*ipos)','stacked','FaceColor','flat');
|
||||||
if ~matlab_ver_less_than('9.3.0')
|
if ~isoctave && ~matlab_ver_less_than('9.3.0')
|
||||||
% make bar obey colormap under MATLAB R2017b
|
% make bar obey colormap under MATLAB R2017b
|
||||||
for k = 1:2
|
for k = 1:2
|
||||||
hbar(k).CData = k;
|
hbar(k).CData = k;
|
||||||
|
@ -175,7 +175,7 @@ for j=1:nvar
|
||||||
set(hbar,'edgecolor','flat');
|
set(hbar,'edgecolor','flat');
|
||||||
hold on,
|
hold on,
|
||||||
hbar = bar(x(2:end),(zz.*ineg)','stacked','FaceColor','flat');
|
hbar = bar(x(2:end),(zz.*ineg)','stacked','FaceColor','flat');
|
||||||
if ~matlab_ver_less_than('9.3.0')
|
if ~isoctave && ~matlab_ver_less_than('9.3.0')
|
||||||
% make bar obey colormap under MATLAB R2017b
|
% make bar obey colormap under MATLAB R2017b
|
||||||
for k = 1:2
|
for k = 1:2
|
||||||
hbar(k).CData = k;
|
hbar(k).CData = k;
|
||||||
|
@ -191,7 +191,7 @@ for j=1:nvar
|
||||||
a0(4)=max(a(4),a0(4));
|
a0(4)=max(a(4),a0(4));
|
||||||
set(gca,'ylim',a0(3:4))
|
set(gca,'ylim',a0(3:4))
|
||||||
hold on, h1=plot(x(2:end),z1(end,:),'k-','LineWidth',2);
|
hold on, h1=plot(x(2:end),z1(end,:),'k-','LineWidth',2);
|
||||||
if interactive & (~isoctave & use_shock_groups)
|
if interactive && (~isoctave && use_shock_groups)
|
||||||
mydata.fig_name = DynareOptions.plot_shock_decomp.fig_name(2:end);
|
mydata.fig_name = DynareOptions.plot_shock_decomp.fig_name(2:end);
|
||||||
mydata.use_shock_groups = DynareOptions.plot_shock_decomp.use_shock_groups;
|
mydata.use_shock_groups = DynareOptions.plot_shock_decomp.use_shock_groups;
|
||||||
mydata.shock_group = shock_groups.(shock_ind{ic});
|
mydata.shock_group = shock_groups.(shock_ind{ic});
|
||||||
|
|
Loading…
Reference in New Issue