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
df0749d1
Commit
df0749d1
authored
May 13, 2013
by
Houtan Bastani
Browse files
reporting: change zeroline to showZeroline
parent
788b7e3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
df0749d1
...
...
@@ -66,7 +66,7 @@ if ~isempty(o.yrange)
ylim
(
o
.
yrange
);
end
if
o
.
z
eroline
if
o
.
showZ
eroline
a
=
ylim
;
if
0
>
a
(
1
)
&&
0
<
a
(
2
)
lh
=
line
(
xlim
,
[
0
0
],
'color'
,
'k'
,
'LineWidth'
,
0.25
);
...
...
matlab/reports/@graph/graph.m
View file @
df0749d1
...
...
@@ -60,7 +60,7 @@ o.legendLocation = 'SouthEast';
o
.
legendOrientation
=
'horizontal'
;
o
.
legendFontSize
=
8
;
o
.
z
eroline
=
false
;
o
.
showZ
eroline
=
false
;
if
nargin
==
1
assert
(
isa
(
varargin
{
1
},
'graph'
),[
'@graph.graph: with one arg you '
...
...
...
@@ -99,7 +99,7 @@ assert(islogical(o.showGrid), '@graph.graph: showGrid must be either true or fal
assert
(
islogical
(
o
.
showLegend
),
'@graph.graph: showLegend 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
(
islogical
(
o
.
z
eroline
),
'@graph.graph:
z
eroline must be either true or false'
);
assert
(
islogical
(
o
.
showZ
eroline
),
'@graph.graph:
showZ
eroline must be either true or false'
);
assert
(
isfloat
(
o
.
shadeOpacity
)
&&
length
(
o
.
shadeOpacity
)
==
1
&&
...
o
.
shadeOpacity
>=
0
&&
o
.
shadeOpacity
<=
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