Commit a3cf461b authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: @graph: if shading, move to bottom

parent e672d88d
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment