Loading [MathJax]/extensions/tex2jax.js
ROOT
Version v6.20
master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
df021_createTGraph.py
Go to the documentation of this file.
1
## \file
2
## \ingroup tutorial_dataframe
3
## \notebook -draw
4
## This tutorial shows how to fill a TGraph using the Dataframe.
5
##
6
## \macro_code
7
## \macro_image
8
##
9
## \date July 2018
10
## \authors Enrico Guiraud, Danilo Piparo, Massimo Tumolo
11
12
import
ROOT
13
14
ROOT.ROOT.EnableImplicitMT(2)
15
d = ROOT.ROOT.RDataFrame(160)
16
17
# Create a trivial parabola
18
dd = d.Alias(
"x"
,
"rdfentry_"
).Define(
"y"
,
"x*x"
)
19
20
graph = dd.Graph(
"x"
,
"y"
)
21
22
# This tutorial is ran with multithreading enabled. The order in which points are inserted is not known, so to have a meaningful representation points are sorted.
23
graph.Sort()
24
graph.Draw(
"APL"
)
25
tutorials
dataframe
df021_createTGraph.py
ROOT v6-20 - Reference Guide Generated on Fri Apr 1 2022 00:23:38 (GVA Time) using Doxygen 1.9.4