I have a ROOT Canvas, where I need to print out a value of a variable I calculate in the ROOT Macro I run, preferably on the top right hand corner, or below the legend. My variable is defined in the macro.
Could you guide me how to print it on the canvas?
root  TCanvas *c = new TCanvas();
root  double pi = 3.14
root  TLatex *t = new TLatex(.5,.5,Form("#pi = %g",pi))
(TLatex *) 0x7f90a201f9b0
root  t->Draw()
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.