Loading [MathJax]/extensions/tex2jax.js
ROOT
6.14/05
Reference Guide
ROOT Home
Main Page
Tutorials
Functional Parts
+
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
j
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
v
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
j
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
t
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
j
k
l
m
n
o
p
r
s
u
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
tutorials
v7
pad.cxx
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_v7
3
///
4
/// \macro_code
5
///
6
/// \date 2015-03-22
7
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
8
/// is welcome!
9
/// \author Axel Naumann <axel@cern.ch>
10
11
/*************************************************************************
12
* Copyright (C) 1995-2015, Rene Brun and Fons Rademakers. *
13
* All rights reserved. *
14
* *
15
* For the licensing terms see $ROOTSYS/LICENSE. *
16
* For the list of contributors see $ROOTSYS/README/CREDITS. *
17
*************************************************************************/
18
19
#include "
Rtypes.h
"
20
21
R__LOAD_LIBRARY
(libROOTGpadv7);
22
23
#include "
ROOT/TCanvas.hxx
"
24
#include "
ROOT/TFrame.hxx
"
25
#include "ROOT/TLine.hxx"
26
27
void
pad()
28
{
29
using namespace
ROOT
;
30
using namespace
ROOT::Experimental
;
31
32
auto
canvas =
Experimental::TCanvas::Create
(
"what to do with a pad!"
);
33
auto
pads = canvas->Divide(3, 3);
34
auto
&pad12 = pads[1][2];
35
pad12->SetAllAxisBounds({{50., 250.}, {-1., 1.}});
36
// Please fix TLine such that {x,y} are TPadPos!
37
//pad12->Draw(Experimental::TLine({100._user, 0.5_normal}, {200._user, 0.5_normal}));
38
39
canvas->Show();
40
}
ROOT
Namespace for new ROOT classes and functions.
Definition:
StringConv.hxx:21
Rtypes.h
R__LOAD_LIBRARY
#define R__LOAD_LIBRARY(LIBRARY)
Definition:
Rtypes.h:467
TCanvas.hxx
TFrame.hxx
ROOT::Experimental
Definition:
TDirectory.hxx:30
ROOT::Experimental::TCanvas::Create
static std::shared_ptr< TCanvas > Create(const std::string &title)
Definition:
TCanvas.cxx:74