Logo ROOT   6.08/07
Reference Guide
roots.C
Go to the documentation of this file.
2 {
3  TCanvas *S = new TCanvas("script","Roots",400,150);
4 
5  TLatex Tl;
6  Tl.SetTextSize(0.15);
7  Tl.SetTextAlign(12);
8  TLatex Tt;
9  Tt.SetTextSize(0.15);
10  Tt.SetTextFont(82);
11  Tt.SetTextAlign(12);
12 
13  // Draw First Column
14  float y, x1, x2;
15  float step = 0.5;
16  y = 0.75; x1 = 0.02; x2 = x1+0.8;
17 
18  Tl.DrawLatex(x2, y, "#sqrt{10}") ; Tt.DrawText(x1, y, "#sqrt{10}");
19  y -= step ; Tl.DrawLatex(x2, y, "#sqrt[3]{10}") ; Tt.DrawText(x1, y, "#sqrt[3]{10}");
20 
21 
22  return S;
23 }
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
Definition: TAttText.h:51
static const double x2[5]
To draw Mathematical Formula.
Definition: TLatex.h:25
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
Definition: TLatex.cxx:1914
TCanvas * roots()
Definition: roots.C:1
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Definition: TAttText.h:47
RooArgSet S(const RooAbsArg &v1)
The Canvas class.
Definition: TCanvas.h:41
static const double x1[5]
Double_t y[n]
Definition: legend1.C:17
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
Definition: TText.cxx:175
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition: TAttText.h:52