I have a 2D TGraph, shown below.
I want to draw two (ideally dashed) lines at the centre of the graph.
What I’m doing now:
c17->cd();
graph->Draw("cont4 z");
TLine *line = new TLine(2,0.4,2,0.6);
line->Draw("same");
and then I’ll add a second TLine for the second line.
At the moment this line doesn’t plot.
I tried to play around with TAttLine to make the lines dashed and of a different colour, but couldn’t get it to work.
Am I doing anything wrong so far?
Can we still draw lines on a 2D Graph in this way or is there a more complicated way?