User Tools

Site Tools


root:python

This is an old revision of the document!


Root and python

TGraph

      
      from ROOT import *
      from array import array
      x = [1,2,3,4]  # a list 
      y = [5,6,7,8]  # a list
      graph = TGraph(len(x),array('f',x),array('f',y)) # convert lists to arrays
root/python.1260262757.txt.gz · Last modified: 2009/12/08 09:59 by viktorh