12from __future__ 
import print_function
 
   13from ROOT 
import TCanvas, TGraph
 
   16from array 
import array
 
   19c1 = 
TCanvas( 
'c1', 
'A Simple Graph Example', 200, 10, 700, 500 )
 
   25x, y = array( 
'd' ), array( 
'd' )
 
   29   y.append( 10*sin( x[i]+0.2 ) )
 
   30   print(
' i %i %f %f ' % (i,x[i],y[i]))
 
   36gr.SetMarkerStyle( 21 )
 
   37gr.SetTitle( 
'a simple graph' )
 
   38gr.GetXaxis().SetTitle( 
'X title' )
 
   39gr.GetYaxis().SetTitle( 
'Y title' )
 
Option_t Option_t SetFillColor
 
A TGraph is an object made of two arrays X and Y with npoints each.