Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Ratto
dynare
Commits
076ae36e
Commit
076ae36e
authored
6 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Octave compatibility fixes in graph decomposition
(cherry picked from commit
13ce9186
)
parent
4a35d280
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/graph_decomp.m
+1
-1
1 addition, 1 deletion
matlab/graph_decomp.m
matlab/graph_decomp_detail.m
+3
-3
3 additions, 3 deletions
matlab/graph_decomp_detail.m
with
4 additions
and
4 deletions
matlab/graph_decomp.m
+
1
−
1
View file @
076ae36e
...
...
@@ -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
});
...
...
This diff is collapsed.
Click to expand it.
matlab/graph_decomp_detail.m
+
3
−
3
View file @
076ae36e
...
...
@@ -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
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment