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
eebdfd62
Commit
eebdfd62
authored
May 03, 2013
by
Houtan Bastani
Browse files
reporting: fix xticklabels
parent
67e24593
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/reports/@graph/createGraph.m
View file @
eebdfd62
...
...
@@ -95,8 +95,16 @@ if ~isempty(o.shade)
end
xticks
=
get
(
gca
,
'XTick'
);
[
junk
,
ix
,
junk
]
=
intersect
(
x
,
xticks
);
set
(
gca
,
'XTickLabel'
,
xlabels
(
ix
));
xTickLabels
=
cell
(
1
,
length
(
xticks
));
for
i
=
1
:
length
(
xticks
)
if
xticks
(
i
)
>=
x
(
1
)
&&
...
xticks
(
i
)
<=
x
(
end
)
xTickLabels
{
i
}
=
xlabels
{
xticks
(
i
)};
else
xTickLabels
{
i
}
=
''
;
end
end
set
(
gca
,
'XTickLabel'
,
xTickLabels
);
if
o
.
legend
lh
=
legend
(
line_handles
,
o
.
seriesElements
.
getTexNames
(),
...
...
...
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