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

reporting: @graph: set prettier spacing of xticklabels

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