Loading [MathJax]/extensions/tex2jax.js
ROOT
Version v6.26
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
v6.04
Reference Guide
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
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
}
kRed
@ kRed
Definition
Rtypes.h:66
kBlue
@ kBlue
Definition
Rtypes.h:66
TArc
Create an Arc.
Definition
TArc.h:26
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TLatex
To draw Mathematical Formula.
Definition
TLatex.h:18
TLine
Use the TLine constructor to create a simple line.
Definition
TLine.h:22
TMarker
Manages Markers.
Definition
TMarker.h:22
TText
Base class for several text objects.
Definition
TText.h:22
m
auto * m
Definition
textangle.C:8
tt
auto * tt
Definition
textangle.C:16
l
auto * l
Definition
textangle.C:4
a
auto * a
Definition
textangle.C:12
t1
auto * t1
Definition
textangle.C:20
core
base
doc
macros
textangle.C
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:10 (GVA Time) using Doxygen 1.9.8