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
a3cf461b
Commit
a3cf461b
authored
Apr 09, 2013
by
Houtan Bastani
Browse files
reporting: @graph: if shading, move to bottom
parent
e672d88d
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
a3cf461b
...
...
@@ -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
);
...
...
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