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
Dóra Kocsis
dynare
Commits
8d19a322
Commit
8d19a322
authored
May 15, 2013
by
Houtan Bastani
Browse files
doc: comment example & and spacing to make more legible
parent
1a836479
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/dynare.texi
View file @
8d19a322
...
...
@@ -7976,11 +7976,18 @@ The following code creates a one page report. The first part of the
page
contains
two
graphs
displayed
across
two
columns
and
one
row
.
The
bottom
of
the
page
displays
a
centered
table
.
@
example
%%
Create
dynSeries
dsq
=
dynSeries
(`
quarterly
.
csv
');
dsa = dynSeries(`annual.csv'
);
dsca
=
dynSeries
(`
annual_control
.
csv
');
%% Report
rep = report();
%% Page 1
rep = rep.addPage(`title'
,
`
My
Page
Title
', `titleFormat'
,
`\
large
\
bfseries
');
% Section 1
rep = rep.addSection(`cols'
,
2
);
rep
=
rep
.
addGraph
(`
title
', `Graph (1,1)'
,
`
showLegend
', true, ...
`xrange'
,
dynDate
(`
2007
q1
'):dynDate(`2013q4'
),
...
...
...
@@ -7996,6 +8003,8 @@ rep = rep.addSeries(`data', dsq@{`SERIES3'@}, `color', `b', ...
`graphLineWidth'
,
1
);
rep
=
rep
.
addSeries
(`
data
', dsq@{`SERIES4'
@},
`
color
', `g'
,
...
`
graphLineStyle
', '
--
', `graphLineWidth'
,
1.5
);
%
Section
2
rep
=
rep
.
addSection
();
rep
=
rep
.
addTable
(`
title
', `Table 1'
,
...
`
range
', dynDate(`2012'
):
dynDate
(`
2014
'));
...
...
@@ -8009,6 +8018,8 @@ for i=1:length(shortNames)
`tableShowMarkers'
,
true
,
...
`
tableAlignRight
', true);
end
%% Write & Compile Report
rep.write();
rep.compile();
@end example
...
...
Write
Preview
Supports
Markdown
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