Loading [MathJax]/extensions/tex2jax.js
ROOT
6.12/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
<
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
n
o
p
r
s
v
w
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
core
base
doc
macros
textangle.C
Go to the documentation of this file.
1
{
2
auto
*Ta =
new
TCanvas
(
"Ta"
,
"Text angle"
,0,0,300,326);
3
Ta->Range(0,0,1,1);
4
auto
*
l
=
new
TLine
();
5
l
->SetLineColor(
kRed
);
6
l
->DrawLine(0.1,0.1,0.9,0.1);
7
l
->DrawLine(0.1,0.1,0.9,0.9);
8
auto
*
m
=
new
TMarker
();
9
m
->SetMarkerStyle(20);
10
m
->SetMarkerColor(
kBlue
);
11
m
->DrawMarker(0.1,0.1);
12
auto
*
a
=
new
TArc
();
13
a
->SetFillStyle(0);
14
a
->SetLineColor(
kBlue
);
a
->SetLineStyle(3);
15
a
->DrawArc(0.1, 0.1, 0.2, 0.,45.,
"only"
);
16
auto
*
tt
=
new
TText
(0.1,0.1,
"Text angle is 45 degrees"
);
17
tt
->SetTextAlign(11);
tt
->SetTextSize(0.1);
18
tt
->SetTextAngle(45);
19
tt
->Draw();
20
auto
*
t1
=
new
TLatex
(0.3,0.18,
"45^{o}"
);
21
t1
->Draw();
22
}
tt
auto * tt
Definition:
textangle.C:16
m
auto * m
Definition:
textangle.C:8
kRed
Definition:
Rtypes.h:59
TMarker
Manages Markers.
Definition:
TMarker.h:23
TLatex
To draw Mathematical Formula.
Definition:
TLatex.h:18
TText
Base class for several text objects.
Definition:
TText.h:23
TArc
Create an Arc.
Definition:
TArc.h:28
a
auto * a
Definition:
textangle.C:12
TLine
A simple line.
Definition:
TLine.h:23
TCanvas
The Canvas class.
Definition:
TCanvas.h:31
t1
auto * t1
Definition:
textangle.C:20
l
auto * l
Definition:
textangle.C:4
kBlue
Definition:
Rtypes.h:59