Hello all,
I would like to make a box on the graph as shown below
Please suggest me, how I can proceed?
with regards,
Ram
Hello all,
I would like to make a box on the graph as shown below
Please suggest me, how I can proceed?
with regards,
Ram
TBox *b = new TBox (...);
b->Draw();
Dear Couet,
Thanks for suggestion.
I tried it. And it is working but then I am not able to view the data points. It looks likes
and if I remove the fillColor line then it looks like
The patch of code that I used is:
TPad *p = new TPad("p","p",0.,0.,1.,1.); p->SetFillStyle(0); p->Draw("same"); p->cd();
TBox *b = new TBox(0.2,0.15,0.7,0.47);
//b->SetFillColor(2);
b->SetLineColor(2);
b->SetLineWidth(8.);
b->Draw("same");
If I don’t use TPad then I am not able to see any box.
with regards,
Ram
b->SetFillStyle(0);
See:
root.cern.ch/doc/master/classTAttFill.html
root.cern.ch/doc/master/classTBox.html