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
80c9bf6c
Commit
80c9bf6c
authored
May 13, 2013
by
Houtan Bastani
Browse files
reporting: change legend to showLegend
parent
36ee655d
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
80c9bf6c
...
...
@@ -106,7 +106,7 @@ for i=1:length(xticks)
end
set
(
gca
,
'XTickLabel'
,
xTickLabels
);
if
o
.
l
egend
if
o
.
showL
egend
lh
=
legend
(
line_handles
,
o
.
seriesElements
.
getTexNames
(),
...
'orientation'
,
o
.
legend_orientation
,
...
'location'
,
o
.
legend_location
);
...
...
matlab/reports/@graph/graph.m
View file @
80c9bf6c
...
...
@@ -54,8 +54,8 @@ o.shade_opacity = .2;
o
.
showGrid
=
true
;
o
.
legend
=
false
;
o
.
legend_boxoff
=
false
;
o
.
showLegend
=
false
;
o
.
legend_location
=
'SouthEast'
;
o
.
legend_orientation
=
'horizontal'
;
o
.
legend_font_size
=
8
;
...
...
@@ -94,7 +94,7 @@ assert(ischar(o.xlabel), '@graph.graph: xlabel file must be a string');
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
.
showGrid
),
'@graph.graph: showGrid must be either true or false'
);
assert
(
islogical
(
o
.
l
egend
),
'@graph.graph:
l
egend must be either true or false'
);
assert
(
islogical
(
o
.
showL
egend
),
'@graph.graph:
showL
egend 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'
);
...
...
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