Logo ROOT   6.07/09
Reference Guide
pavetext.C File Reference

Detailed Description

View in nbviewer Open in SWAN Draw a pave text.

pict1_pavetext.C.png
TCanvas *pavetext(){
TCanvas *c = new TCanvas("c");
TPaveText *pt = new TPaveText(.05,.1,.95,.8);
pt->AddText("A TPaveText can contain severals line of text.");
pt->AddText("They are added to the pave using the AddText method.");
pt->AddLine(.0,.5,1.,.5);
pt->AddText("Even complex TLatex formulas can be added:");
pt->AddText("F(t) = #sum_{i=-#infty}^{#infty}A(i)cos#[]{#frac{i}{t+i}}");
pt->Draw();
return c;
}
Author
Olivier Couet

Definition in file pavetext.C.