203 |
|
ratio.SetBinError(i+1,groupErr(g)) |
204 |
|
|
205 |
|
ratio.GetYaxis().SetTitle("#frac{hist1-hist2}{hist2}") |
206 |
+ |
ratio.GetXaxis().SetLabelOffset(0.03) |
207 |
|
ratio.SetLineColor(1) |
208 |
|
ratio.SetMarkerColor(1) |
209 |
|
ratio.SetLineWidth(2) |
268 |
|
Histogram.Rebin(RebinFactor) |
269 |
|
|
270 |
|
xAxisLabel = Histogram.GetXaxis().GetTitle() |
271 |
< |
unitIndex = xAxisLabel.find("[") |
272 |
< |
yAxisLabel = "" |
273 |
< |
if unitIndex is not -1: #x axis has a unit |
274 |
< |
yAxisLabel = "Entries / " + str(Histogram.GetXaxis().GetBinWidth(1)) + " " + xAxisLabel[unitIndex+1:-1] |
271 |
> |
unitBeginIndex = xAxisLabel.find("[") |
272 |
> |
unitEndIndex = xAxisLabel.find("]") |
273 |
> |
|
274 |
> |
if unitBeginIndex is not -1 and unitEndIndex is not -1: #x axis has a unit |
275 |
> |
yAxisLabel = "Entries / " + str(Histogram.GetXaxis().GetBinWidth(1)) + " " + xAxisLabel[unitBeginIndex+1:unitEndIndex] |
276 |
|
else: |
277 |
|
yAxisLabel = "Entries per bin (" + str(Histogram.GetXaxis().GetBinWidth(1)) + " width)" |
278 |
|
if arguments.normalizeToUnitArea: |
294 |
|
Histogram.SetMarkerColor(colors[colorList[colorIndex]]) |
295 |
|
Histogram.SetLineColor(colors[colorList[colorIndex]]) |
296 |
|
colorIndex = colorIndex + 1 |
297 |
< |
if colorIndex is len(colorList)-1: |
297 |
> |
if colorIndex is len(colorList): |
298 |
|
colorIndex = 0 |
299 |
|
|
300 |
|
markerStyle = 20 |