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

reporting: @graph: if shading, move to bottom

parent ec0dc614
Branches
Tags
No related merge requests found
......@@ -85,8 +85,11 @@ if ~isempty(o.shade)
% From ShadePlotForEmpahsis (Matlab Exchange)
% use patch bc area doesn't work with matlab2tikz
patch([repmat(x1, 1, 2) repmat(x2, 1, 2)], ...
[yrange fliplr(yrange)], 'b', 'FaceAlpha', .2);
sh = patch([repmat(x1, 1, 2) repmat(x2, 1, 2)], ...
[yrange fliplr(yrange)], 'b', 'FaceAlpha', .2);
children =get(gca(), 'children');
children = [children(2:end); sh];
set(gca(), 'children', children);
end
set(gca,'XTick', x);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment