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
e672d88d
Commit
e672d88d
authored
Apr 09, 2013
by
Houtan Bastani
Browse files
reporting: @graph: uistack fix for octave & move zeroline writing up
parent
aed73f7a
Changes
1
Show whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
e672d88d
...
...
@@ -65,6 +65,16 @@ if ~isempty(o.yrange)
ylim
(
o
.
yrange
);
end
if
o
.
zeroline
a
=
ylim
;
if
0
>
a
(
1
)
&&
0
<
a
(
2
)
lh
=
line
(
xlim
,
[
0
0
],
'color'
,
'k'
,
'LineWidth'
,
0.25
);
children
=
get
(
gca
(),
'children'
);
children
=
[
children
(
2
:
end
);
lh
];
set
(
gca
(),
'children'
,
children
);
end
end
if
~
isempty
(
o
.
shade
)
x1
=
find
(
strcmpi
(
o
.
shade
(
1
)
.
format
(),
xlabels
));
x2
=
find
(
strcmpi
(
o
.
shade
(
o
.
shade
.
ndat
)
.
format
(),
xlabels
));
...
...
@@ -101,14 +111,6 @@ end
if
~
isempty
(
o
.
title
)
title
(
o
.
title
,
'Interpreter'
,
'LaTex'
);
end
if
o
.
zeroline
a
=
ylim
;
if
0
>
a
(
1
)
&&
0
<
a
(
2
)
lh
=
line
(
xlim
,
[
0
0
],
'color'
,
'k'
,
'LineWidth'
,
0.25
);
uistack
(
lh
,
'bottom'
);
end
end
drawnow
;
o
.
figname
=
[
tempname
'.tex'
];
...
...
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