ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
legend3.C
Go to the documentation of this file.
1
{
2
TCanvas
*
c3
=
new
TCanvas
(
"c2"
,
"c2"
,500,300);
3
4
TLegend
*
leg
=
new
TLegend
(0.2, 0.2, .8, .8);
5
TH1
*
h
=
new
TH1F
(
""
,
""
, 1, 0, 1);
6
7
leg
->
SetNColumns
(2);
8
9
leg
->AddEntry(
h
,
"Column 1 line 1"
,
"l"
);
10
leg
->AddEntry(
h
,
"Column 2 line 1"
,
"l"
);
11
leg
->AddEntry(
h
,
"Column 1 line 2"
,
"l"
);
12
leg
->AddEntry(
h
,
"Column 2 line 2"
,
"l"
);
13
14
leg
->Draw();
15
return
c3
;
16
}
17
h
#define h(i)
Definition
RSha256.hxx:106
TCanvas
The Canvas class.
Definition
TCanvas.h:23
TH1F
1-D histogram with a float per channel (see TH1 documentation)
Definition
TH1.h:878
TH1
TH1 is the base class of all histogram classes in ROOT.
Definition
TH1.h:109
TLegend
Definition
TLegend.h:23
leg
leg
Definition
legend1.C:34
SetNColumns
leg SetNColumns(2)
c3
return c3
Definition
legend3.C:15
graf2d
graf
doc
macros
legend3.C
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1