User Tools

Site Tools


root:python

This is an old revision of the document!


  • create a 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.1260261673.txt.gz · Last modified: 2009/12/08 09:41 by viktorh