ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
greekletters.C
Go to the documentation of this file.
1
TCanvas
*
greekletters
()
2
{
3
TCanvas
*Gl =
new
TCanvas
(
"greek"
,
"greek"
,500,700);
4
5
TLatex
Tl;
6
Tl.
SetTextSize
(0.03);
7
8
// Draw the columns titles
9
Tl.
SetTextAlign
(22);
10
Tl.
DrawLatex
(0.165, 0.95,
"Lower case"
);
11
Tl.
DrawLatex
(0.495, 0.95,
"Upper case"
);
12
Tl.
DrawLatex
(0.825, 0.95,
"Variations"
);
13
14
// Draw the lower case letters
15
Tl.
SetTextAlign
(12);
16
float
y
, x1, x2;
17
y
= 0.90; x1 = 0.07; x2 = x1+0.2;
18
Tl.
DrawLatex
(x1,
y
,
"alpha : "
) ; Tl.
DrawLatex
(x2,
y
,
"#alpha"
);
19
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"beta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#beta"
);
20
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"gamma : "
) ; Tl.
DrawLatex
(x2,
y
,
"#gamma"
);
21
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"delta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#delta"
);
22
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"epsilon : "
) ; Tl.
DrawLatex
(x2,
y
,
"#epsilon"
);
23
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"zeta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#zeta"
);
24
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"eta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#eta"
);
25
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"theta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#theta"
);
26
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"iota : "
) ; Tl.
DrawLatex
(x2,
y
,
"#iota"
);
27
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"kappa : "
) ; Tl.
DrawLatex
(x2,
y
,
"#kappa"
);
28
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"lambda : "
) ; Tl.
DrawLatex
(x2,
y
,
"#lambda"
);
29
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"mu : "
) ; Tl.
DrawLatex
(x2,
y
,
"#mu"
);
30
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"nu : "
) ; Tl.
DrawLatex
(x2,
y
,
"#nu"
);
31
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"xi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#xi"
);
32
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"omicron : "
) ; Tl.
DrawLatex
(x2,
y
,
"#omicron"
);
33
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"pi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#pi"
);
34
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"rho : "
) ; Tl.
DrawLatex
(x2,
y
,
"#rho"
);
35
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"sigma : "
) ; Tl.
DrawLatex
(x2,
y
,
"#sigma"
);
36
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"tau : "
) ; Tl.
DrawLatex
(x2,
y
,
"#tau"
);
37
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"upsilon : "
) ; Tl.
DrawLatex
(x2,
y
,
"#upsilon"
);
38
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"phi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#phi"
);
39
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"chi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#chi"
);
40
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"psi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#psi"
);
41
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"omega : "
) ; Tl.
DrawLatex
(x2,
y
,
"#omega"
);
42
43
// Draw the upper case letters
44
y
= 0.90; x1 = 0.40; x2 = x1+0.2;
45
Tl.
DrawLatex
(x1,
y
,
"Alpha : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Alpha"
);
46
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Beta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Beta"
);
47
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Gamma : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Gamma"
);
48
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Delta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Delta"
);
49
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Epsilon : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Epsilon"
);
50
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Zeta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Zeta"
);
51
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Eta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Eta"
);
52
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Theta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Theta"
);
53
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Iota : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Iota"
);
54
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Kappa : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Kappa"
);
55
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Lambda : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Lambda"
);
56
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Mu : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Mu"
);
57
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Nu : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Nu"
);
58
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Xi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Xi"
);
59
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Omicron : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Omicron"
);
60
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Pi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Pi"
);
61
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Rho : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Rho"
);
62
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Sigma : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Sigma"
);
63
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Tau : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Tau"
);
64
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Upsilon : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Upsilon"
);
65
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Phi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Phi"
);
66
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Chi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Chi"
);
67
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Psi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Psi"
);
68
y
-= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"Omega : "
) ; Tl.
DrawLatex
(x2,
y
,
"#Omega"
);
69
70
// Draw the variations
71
x1 = 0.73; x2 = x1+0.2;
72
y
= 0.7500 ; Tl.
DrawLatex
(x1,
y
,
"varepsilon : "
) ; Tl.
DrawLatex
(x2,
y
,
"#varepsilon"
);
73
y
= 0.6375 ; Tl.
DrawLatex
(x1,
y
,
"vartheta : "
) ; Tl.
DrawLatex
(x2,
y
,
"#vartheta"
);
74
y
= 0.2625 ; Tl.
DrawLatex
(x1,
y
,
"varsigma : "
) ; Tl.
DrawLatex
(x2,
y
,
"#varsigma"
);
75
y
= 0.1875 ; Tl.
DrawLatex
(x1,
y
,
"varUpsilon : "
) ; Tl.
DrawLatex
(x2,
y
,
"#varUpsilon"
);
76
y
= 0.1500 ; Tl.
DrawLatex
(x1,
y
,
"varphi : "
) ; Tl.
DrawLatex
(x2,
y
,
"#varphi"
);
77
y
= 0.0375 ; Tl.
DrawLatex
(x1,
y
,
"varomega : "
) ; Tl.
DrawLatex
(x2,
y
,
"#varomega"
);
78
79
return
Gl;
80
}
TAttText::SetTextAlign
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
Definition
TAttText.h:48
TAttText::SetTextSize
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Definition
TAttText.h:53
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TLatex
Definition
TLatex.h:20
TLatex::DrawLatex
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
greekletters
TCanvas * greekletters()
Definition
greekletters.C:1
y
Double_t y[n]
Definition
legend1.C:17
graf2d
graf
doc
macros
greekletters.C
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1