reporting: @graph: set prettier spacing of xticklabels

remove-priordens
Houtan Bastani 2013-04-18 17:19:48 +02:00
parent 8947c52c1f
commit 2cb40a658d
1 changed files with 3 additions and 2 deletions

View File

@ -94,8 +94,9 @@ if ~isempty(o.shade)
set(gca(), 'children', children);
end
set(gca,'XTick', x);
set(gca,'XTickLabel', xlabels);
xticks = get(gca, 'XTick');
[junk, ix, junk] = intersect(x, xticks);
set(gca, 'XTickLabel', xlabels(ix));
if o.legend
lh = legend(line_handles, o.seriesElements.getTexNames());