Dear Users,
I have been a little stuck on trying to plot a horizontal line TLine behind a 1D histogram hist (TH1D object). My code lines look as follows:
canvas = TCanvas("Histogram", "Histogram", 100, 200, 700, 500)
canvas.cd()
hist.Draw("hist")
line = TLine(0, 10, 100, 10)
line.Draw()
This plots the line in front of the histogram; how do I put it behind? I have tried setting line.Draw() before hist.Draw("hist") but this just draws a new histogram without the line. Rewriting hist.Draw("hist same") draws a blank image.
