Commit eebdfd62 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: fix xticklabels

parent 67e24593
......@@ -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(), ...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment