Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
style.C
Go to the documentation of this file.
1 TCanvas *style()
2 {
3  TCanvas *S = new TCanvas("script","Style",750,250);
4 
5  TLatex Tl;
6  Tl.SetTextSize(0.08);
7  Tl.SetTextAlign(12);
8  TLatex Tt;
9  Tt.SetTextSize(0.08);
10  Tt.SetTextFont(82);
11  Tt.SetTextAlign(12);
12 
13  // Draw First Column
14  float y, x1, x2;
15  float step = 0.3;
16  y = 0.80; x1 = 0.01; x2 = x1+0.7;
17 
18  Tt.DrawText(x1, y, "#font[12]{Times Italic} and #font[22]{Times bold} : ") ; Tl.DrawLatex(x2, y, "#font[12]{Times Italic} and #font[22]{Times bold}");
19  y -= step ; Tt.DrawText(x1, y, "#color[2]{Red} and #color[4]{Blue} : ") ; Tl.DrawLatex(x2, y, "#color[2]{Red} and #color[4]{Blue}");
20  y -= step ; Tt.DrawText(x1, y, "#scale[1.2]{Bigger} and #scale[0.8]{Smaller} : ") ; Tl.DrawLatex(x2, y, "#scale[1.2]{Bigger} and #scale[0.8]{Smaller}");
21  return S;
22 }