13   auto c = 
new TCanvas(
"c",
"", 900, 800);
 
   17   Double_t x[
n] = {-3.00, -2.68, -2.36, -2.05, -1.73};
 
   18   Double_t y1[
n] = {-0.98, -0.89, -0.71, -0.46, -0.16};
 
   19   Double_t y2[
n] = {-2.98, -2.89, -2.71, -2.46, -2.16};
 
   25   gr1->SetMarkerColor(4);
 
   26   gr1->SetMarkerStyle(21);
 
   27   gr1->SetTitle(
"Graph with legend");
 
   30   legend->SetHeader(
"Legend title", 
"C"); 
 
   34   legend->AddEntry(
gr1, 
"Data points", 
"lp");  
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char y2
 
Option_t Option_t TPoint TPoint const char y1
 
A TGraph is an object made of two arrays X and Y with npoints each.
 
This class displays a legend box (TPaveText) containing several legend entries.