Hi,
Apparently, when trying to draw a variable from a tree and output it to a histogram, as so:
f = TFile("myfile.root","r")
t = f.Get("myTree")
h = TH2F("h","",xbins,xmin,xmax,ybins,ymin,ymax)
t.Draw("varY:varX>>h","","")
in the special case ymin=ymax
, the command h.Draw("axis")
reports illegal ranges but h.Draw()
doesn’t. Instead, h.Draw()
rebins the data, keeping the same ybins
but massaging the Y range for a “nice” plot.
Is that on purpose?