Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
reporting
Commits
8a7da653
Commit
8a7da653
authored
Mar 17, 2017
by
Houtan Bastani
Browse files
update report test files
parent
d6d87118
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/CountryTablePage.m
View file @
8a7da653
...
...
@@ -61,7 +61,7 @@ for i=1:length(seriesNames)
delta
=
delta
.
tex_rename
(
'$\Delta$'
);
deltaa
=
db_a
{[
seriesNames
{
i
}{
1
}
countryAbbr
]}
-
dc_a
{[
seriesNames
{
i
}{
1
}
countryAbbr
]};
deltaa
=
delta
.
tex_rename
(
'$\Delta$'
);
deltaa
=
delta
a
.
tex_rename
(
'$\Delta$'
);
rep
=
rep
.
addSeries
(
'data'
,
delta
,
...
'tableShowMarkers'
,
true
,
...
'tableRowIndent'
,
2
,
...
...
...
test/createReport.m
View file @
8a7da653
function
createReport
(
dc_a
,
dc_q
,
db_a
,
db_q
)
% Copyright (C) 2013-201
4
Dynare Team
% Copyright (C) 2013-201
7
Dynare Team
%
% This file is part of Dynare.
%
...
...
@@ -257,26 +257,46 @@ rep = rep.addSeries('graphHline', 460, ...
'graphLineColor'
,
'red'
,
...
'graphLineWidth'
,
1.5
);
a
=
dseries
([
1
:
200
]
', '
1984
q1
'
);
b
=
a
;
c
=
a
;
d
=
a
;
b
(
dates
(
'2012q2'
):
dates
(
'2015q2'
))
=
b
(
dates
(
'2012q2'
):
dates
(
'2015q2'
))
+
2
;
c
(
dates
(
'2012q2'
):
dates
(
'2015q2'
))
=
c
(
dates
(
'2012q2'
):
dates
(
'2015q2'
))
+
4
;
d
(
dates
(
'2012q2'
):
dates
(
'2015q2'
))
=
d
(
dates
(
'2012q2'
):
dates
(
'2015q2'
))
+
6
;
rep
=
rep
.
addGraph
(
'title'
,
'Equilibrium World Real Food Price'
,
...
'xrange'
,
prange
,
...
'shade'
,
srange
,
...
'showLegend'
,
true
,
...
'xTickLabelRotation'
,
0
);
rep
=
rep
.
addSeries
(
'data'
,
db_q
{
'LRPFOOD_BAR_WORLD'
}
,
...
rep
=
rep
.
addSeries
(
'data'
,
a
,
...
'graphLineColor'
,
'blue'
,
...
'graphLineWidth'
,
1.5
,
...
'graphLegendName'
,
'baseline'
,
...
'graphMiscTikzAddPlotOptions'
,
'mark=halfcircle*,color=red'
);
rep
=
rep
.
addSeries
(
'data'
,
dc_q
{
'LRPFOOD_BAR_WORLD'
},
...
rep
=
rep
.
addSeries
(
'data'
,
b
,
...
'graphLineColor'
,
'blue'
,
...
'graphLineStyle'
,
'dashed'
,
...
'graphLineWidth'
,
1.5
,
...
'graphLegendName'
,
'control'
,
...
'graphMiscTikzAddPlotOptions'
,
'mark=halfcircle*,mark options={rotate=90,scale=3}'
,
...
'graphFanShadeColor'
,
'red'
,
'graphFanShadeOpacity'
,
40
);
rep
=
rep
.
addSeries
(
'data'
,
c
,
...
'graphLineColor'
,
'blue'
,
...
'graphLineStyle'
,
'dashed'
,
...
'graphLineWidth'
,
1.5
,
...
'graphLegendName'
,
'control'
,
...
'graphMiscTikzAddPlotOptions'
,
'mark=halfcircle*,mark options={rotate=90,scale=3}'
);
'graphFanShadeColor'
,
'red'
,
'graphFanShadeOpacity'
,
30
);
rep
=
rep
.
addSeries
(
'data'
,
d
,
...
'graphLineColor'
,
'blue'
,
...
'graphLineStyle'
,
'dashed'
,
...
'graphLineWidth'
,
1.5
,
...
'graphLegendName'
,
'control'
,
...
'graphFanShadeColor'
,
'red'
,
'graphFanShadeOpacity'
,
20
);
%% Write & Compile Report
rep
.
write
();
rep
.
compile
();
toc
end
\ No newline at end of file
end
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