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
cc923e53
Commit
cc923e53
authored
Apr 25, 2013
by
Houtan Bastani
Browse files
reporting: @graph: add shade_color option
parent
e3bb2760
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
cc923e53
...
...
@@ -87,7 +87,7 @@ if ~isempty(o.shade)
% From ShadePlotForEmpahsis (Matlab Exchange)
% use patch bc area doesn't work with matlab2tikz
sh
=
patch
([
repmat
(
x1
,
1
,
2
)
repmat
(
x2
,
1
,
2
)],
...
[
yrange
fliplr
(
yrange
)],
[
0
1
0
]
,
...
[
yrange
fliplr
(
yrange
)],
o
.
shade_color
,
...
'facealpha'
,
o
.
shade_opacity
);
children
=
get
(
gca
(),
'children'
);
children
=
[
children
(
2
:
end
);
sh
];
...
...
matlab/reports/@graph/graph.m
View file @
cc923e53
...
...
@@ -49,6 +49,7 @@ o.xrange = '';
o
.
yrange
=
''
;
o
.
shade
=
''
;
o
.
shade_color
=
[
0
1
0
];
o
.
shade_opacity
=
.
2
;
o
.
grid
=
true
;
...
...
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