Skip to content
Snippets Groups Projects
Commit 3c8164f1 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: fix xticklabels

parent b7df2505
Branches
Tags
No related merge requests found
......@@ -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(), ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment