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
7a468050
Commit
7a468050
authored
Jun 25, 2014
by
Houtan Bastani
Browse files
reporting: add graph option to change title font size
parent
f02e7f77
Changes
2
Hide whitespace changes
Inline
Side-by-side
@graph/graph.m
View file @
7a468050
...
...
@@ -37,6 +37,7 @@ o.series = {};
o
.
title
=
''
;
o
.
titleFormat
=
''
;
o
.
titleFontSize
=
'normalsize'
o
.
ylabel
=
''
;
o
.
xlabel
=
''
;
...
...
@@ -149,10 +150,12 @@ valid_legend_locations = ...
assert
(
any
(
strcmp
(
o
.
legendLocation
,
valid_legend_locations
)),
...
[
'@graph.graph: legendLocation must be one of '
strjoin
(
valid_legend_locations
,
' '
)]);
valid_
legend_
font_sizes
=
{
'tiny'
,
'scriptsize'
,
'footnotesize'
,
'small'
,
...
valid_font_sizes
=
{
'tiny'
,
'scriptsize'
,
'footnotesize'
,
'small'
,
...
'normalsize'
,
'large'
,
'Large'
,
'LARGE'
,
'huge'
,
'Huge'
};
assert
(
any
(
strcmp
(
o
.
legendFontSize
,
valid_legend_font_sizes
)),
...
[
'@graph.graph: legendFontSize must be one of '
strjoin
(
valid_legend_font_sizes
)]);
assert
(
any
(
strcmp
(
o
.
legendFontSize
,
valid_font_sizes
)),
...
[
'@graph.graph: legendFontSize must be one of '
strjoin
(
valid_font_sizes
)]);
assert
(
any
(
strcmp
(
o
.
titleFontSize
,
valid_font_sizes
)),
...
[
'@graph.graph: titleFontSize must be one of '
strjoin
(
valid_font_sizes
)]);
valid_legend_orientations
=
{
'vertical'
,
'horizontal'
};
assert
(
any
(
strcmp
(
o
.
legendOrientation
,
valid_legend_orientations
)),
...
...
...
@graph/writeGraphFile.m
View file @
7a468050
...
...
@@ -189,6 +189,10 @@ if ~isempty(o.miscTikzAxisOptions)
end
fprintf
(
fid
,
']\n'
);
if
~
isempty
(
o
.
title
{
1
})
fprintf
(
fid
,
'\\tikzstyle{every axis title}=[font=\\%s]\n'
,
o
.
titleFontSize
);
end
if
~
isempty
(
o
.
shade
)
fprintf
(
fid
,
'%%shading\n'
);
stringsdd
=
strings
(
dd
);
...
...
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