Df 0 2 1_Create T Graph

This tutorial shows how to fill a TGraph using the Dataframe.

Author: Enrico Guiraud, Danilo Piparo, Massimo Tumolo
This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Monday, July 06, 2020 at 11:38 AM.

In [1]:
import ROOT

d = ROOT.RDataFrame(160)
Welcome to JupyROOT 6.23/01

Create a trivial parabola

In [2]:
dd = d.Alias("x", "rdfentry_").Define("y", "x*x")

graph = dd.Graph("x", "y")

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.

In [3]:
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1

Draw all canvases

In [4]:
from ROOT import gROOT