Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dynare
dynare
Commits
13ce9186
Commit
13ce9186
authored
Jul 02, 2018
by
Sébastien Villemot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Octave compatibility fixes in graph decomposition
parent
b2c55462
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
matlab/graph_decomp.m
matlab/graph_decomp.m
+1
-1
matlab/graph_decomp_detail.m
matlab/graph_decomp_detail.m
+3
-3
No files found.
matlab/graph_decomp.m
View file @
13ce9186
...
...
@@ -189,7 +189,7 @@ for j=1:nvar
hold
on
ht
=
text
(
0.3
,
y1
+
0.3
*
height
,
labels
(
i
,:),
'Interpreter'
,
'none'
);
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
.
use_shock_groups
=
DynareOptions
.
plot_shock_decomp
.
use_shock_groups
;
mydata
.
shock_group
=
shock_groups
.
(
shock_ind
{
i
});
...
...
matlab/graph_decomp_detail.m
View file @
13ce9186
...
...
@@ -166,7 +166,7 @@ for j=1:nvar
ineg
=
zz
<
0
;
hax
=
subplot
(
nrow
,
ncol
,
i
);
set
(
gca
,
'box'
,
'on'
)
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
for
k
=
1
:
2
hbar
(
k
)
.
CData
=
k
;
...
...
@@ -175,7 +175,7 @@ for j=1:nvar
set
(
hbar
,
'edgecolor'
,
'flat'
);
hold
on
,
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
for
k
=
1
:
2
hbar
(
k
)
.
CData
=
k
;
...
...
@@ -191,7 +191,7 @@ for j=1:nvar
a0
(
4
)
=
max
(
a
(
4
),
a0
(
4
));
set
(
gca
,
'ylim'
,
a0
(
3
:
4
))
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
.
use_shock_groups
=
DynareOptions
.
plot_shock_decomp
.
use_shock_groups
;
mydata
.
shock_group
=
shock_groups
.
(
shock_ind
{
ic
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment