diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m index c579887667158a47dee6eef3dda609d444b388e0..3a2e079ed7a9577bbd90da1a38bcdc01d26ad1e5 100644 --- a/matlab/reporting/@graph/createGraph.m +++ b/matlab/reporting/@graph/createGraph.m @@ -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);