Hi

I am trying to rebin a histogram in python following way:

h=r.TH1F(’’,’’,8,0,8)

for i in range(9) :

… h.SetBinContent(i+1,i)

…h.Draw()

Info in TCanvas::MakeDefCanvas: created default TCanvas with name c1

x=numpy.array([0,1,2,3,4,8])

h1=h.Rebin(5,’’,x)

h1.Draw()

Error in TGaxis::PaintAxis: length of axis is 0h1.GetEntries()

9.0h.GetEntries()

9.0h.Integral()

28.0h1.Integral()

0.0

What I understand Rebin() function will return the pointer of modified binsize histogram with different name, but why the integral value is zero & also why getting error while drawing? Can anyone please make it clear?

Thanks