Skip to content
Snippets Groups Projects
Commit 74a8e9bc authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: @graph: add shade_color option

parent a8c9f2af
Branches
Tags
No related merge requests found
......@@ -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];
......
......@@ -49,6 +49,7 @@ o.xrange = '';
o.yrange = '';
o.shade = '';
o.shade_color = [0 1 0];
o.shade_opacity = .2;
o.grid = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment