from ROOT import *
h=TH1F(‘h’,‘h’,2,0,1)
h.Fill(.5)
legend=TLegend(0.6,0.6,0.8,0.
legend.AddEntry(h, h.GetName(), “l”)
legend.Draw()
the only thing drawn is the legend, where is the histo?
tried also the 2nd constructor, passing a string, then it crashes.