Logo ROOT   6.19/01
Reference Guide
df021_createTGraph.C File Reference

Detailed Description

View in nbviewer Open in SWAN This tutorial shows how to fill a TGraph using the Dataframe.

{
// Create a trivial parabola
auto dd = d.Alias("x", "rdfentry_").Define("y", "x*x");
auto 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.
graph->Sort();
auto c = new TCanvas();
graph->DrawClone("APL");
}
pict1_df021_createTGraph.C.png
Date
July 2018
Author
Enrico Guiraud, Danilo Piparo, Massimo Tumolo

Definition in file df021_createTGraph.C.