Dear experts, i am having a trouble re-scaling a histogram that is a Rebin of another histogram. I was working in MeV but decided to re-scale everything to GeV. I used the following command:
xminn = h_wplus.GetXaxis().GetXmin()
xmaxx = h_wplus.GetXaxis().GetXmax()
h_wplus.GetXaxis().SetLimits(xminn/1000,xmaxx/1000)
and re-scaled every other histogram that i was working with. Everything was ok, until i tried to reescale a histogram that is a rebin of another histogram. As you can see below (the below graph is actually in MeV instead of GeV as axis says). The rebinned histogram is the one in blue in the main plot.
mtw.pdf (23.3 KB)
And so, i reescaled the data and every other histogram, with the same code that i used above. But when i tried to reescale the rebinned histogram i get this:
mtw.pdf (22.7 KB)
He does not appear anymore, with the other histograms. But if i turn off his rescale i get this:
mtw.pdf (23.1 KB)
So i dont know if i can reescale a .Rebin() like that, or if i did something wrong.