actually create automargins for the histogram