add check on the axis labels when merging histograms