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
efaa3c71
Commit
efaa3c71
authored
Apr 24, 2013
by
Houtan Bastani
Browse files
reporting: @graph: add option to turn legend box on or off
parent
e65ee258
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
efaa3c71
...
...
@@ -104,7 +104,9 @@ if o.legend
'location'
,
o
.
legend_location
);
set
(
lh
,
'FontSize'
,
o
.
legend_font_size
);
set
(
lh
,
'interpreter'
,
'latex'
);
legend
(
'boxoff'
);
if
o
.
legend_boxoff
legend
(
'boxoff'
);
end
end
if
~
isempty
(
o
.
xlabel
)
...
...
matlab/reports/@graph/graph.m
View file @
efaa3c71
...
...
@@ -52,6 +52,7 @@ o.yrange = '';
o
.
grid
=
true
;
o
.
legend
=
false
;
o
.
legend_boxoff
=
false
;
o
.
legend_location
=
'SouthEast'
;
o
.
legend_orientation
=
'horizontal'
;
o
.
legend_font_size
=
8
;
...
...
@@ -91,6 +92,7 @@ assert(ischar(o.ylabel), '@graph.graph: ylabel file must be a string');
assert
(
ischar
(
o
.
figname
),
'@graph.graph: figname must be a string'
);
assert
(
islogical
(
o
.
grid
),
'@graph.graph: grid must be either true or false'
);
assert
(
islogical
(
o
.
legend
),
'@graph.graph: legend must be either true or false'
);
assert
(
islogical
(
o
.
legend_boxoff
),
'@graph.graph: legend_boxoff must be either true or false'
);
assert
(
isint
(
o
.
legend_font_size
),
'@graph.graph: legend_font_size must be an integer'
);
assert
(
islogical
(
o
.
zeroline
),
'@graph.graph: zeroline must be either true or false'
);
valid_legend_locations
=
...
...
...
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