I’m trying to put a horizontal band across my tgraph. I have it almost there, but graph->Draw(“p”) seems to remove my ability to set titles. Why is this?
...
Double_t xmax = 0.85;
Double_t limitlo = 4.845581E-08;
Double_t limithi = 1.462458E-06;
TCanvas *c1 = new TCanvas();
c1->DrawFrame(0,-2e-6,xmax,8e-6);
TGraph *graph = new TGraph(nbins,x,y);
TBox *b = new TBox(0,limitlo,xmax,limithi);
b->SetFillColor(kYellow-9);
b->Draw();
graph->SetTitle("test;test;test")
graph->Draw("p");
gPad->RedrawAxis();
in.close();
}