diff --git a/matlab/reporting/@graph/createGraph.m b/matlab/reporting/@graph/createGraph.m index e40eaddead1957f49d8a0c2e298fc9a6573b27c6..919bde15786b492810a86d3533ff3d390cecb139 100644 --- a/matlab/reporting/@graph/createGraph.m +++ b/matlab/reporting/@graph/createGraph.m @@ -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());