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
e6b99ad6
Commit
e6b99ad6
authored
May 14, 2013
by
Houtan Bastani
Browse files
reporting: @graph: only take string representation of color
parent
cbd43ee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/graph.m
View file @
e6b99ad6
...
@@ -49,7 +49,7 @@ o.xrange = '';
...
@@ -49,7 +49,7 @@ o.xrange = '';
o
.
yrange
=
''
;
o
.
yrange
=
''
;
o
.
shade
=
''
;
o
.
shade
=
''
;
o
.
shadeColor
=
[
0
1
0
]
;
o
.
shadeColor
=
'green'
;
o
.
shadeOpacity
=
.
2
;
o
.
shadeOpacity
=
.
2
;
o
.
showGrid
=
true
;
o
.
showGrid
=
true
;
...
@@ -99,6 +99,7 @@ assert(islogical(o.showLegend), '@graph.graph: showLegend must be either true or
...
@@ -99,6 +99,7 @@ assert(islogical(o.showLegend), '@graph.graph: showLegend must be either true or
assert
(
islogical
(
o
.
showLegendBox
),
'@graph.graph: showLegendBox must be either true or false'
);
assert
(
islogical
(
o
.
showLegendBox
),
'@graph.graph: showLegendBox must be either true or false'
);
assert
(
isint
(
o
.
legendFontSize
),
'@graph.graph: legendFontSize must be an integer'
);
assert
(
isint
(
o
.
legendFontSize
),
'@graph.graph: legendFontSize must be an integer'
);
assert
(
islogical
(
o
.
showZeroline
),
'@graph.graph: showZeroline must be either true or false'
);
assert
(
islogical
(
o
.
showZeroline
),
'@graph.graph: showZeroline must be either true or false'
);
assert
(
ischar
(
o
.
shadeColor
),
'@graph.graph: shadeColor must be a string'
);
assert
(
isfloat
(
o
.
shadeOpacity
)
&&
length
(
o
.
shadeOpacity
)
==
1
&&
...
assert
(
isfloat
(
o
.
shadeOpacity
)
&&
length
(
o
.
shadeOpacity
)
==
1
&&
...
o
.
shadeOpacity
>=
0
&&
o
.
shadeOpacity
<=
1
,
...
o
.
shadeOpacity
>=
0
&&
o
.
shadeOpacity
<=
1
,
...
'@graph.graph: o.shadeOpacity must be a real in [0 1]'
);
'@graph.graph: o.shadeOpacity must be a real in [0 1]'
);
...
...
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