Hi,
I am puzzled that I do not manage to draw a simple line in a canvas. Attached is a macro, which should draw a colz plot and a line over that. If I turn off the hDef.Draw(“colz”) and just try to draw the line,
#hDef.SetMaximum(yMax)
#hDef.SetMinimum(yMin)
#hDef.Draw("colz")
chosenEff = 86.0
line = TLine(chosenEff,yMin,chosenEff,yMax);
line.SetLineColor(kYellow)
line.SetLineWidth(2)
line.Draw()
I just end up with an empty canvas. What am I doing wrong, I wonder?
Thanks,
Maiken
negativity_plotter.py (3.18 KB)