User Tools

Site Tools


root:python

Root and python

TGraph

      
      from ROOT import *
      from numpy import array
      x = [1,2,3,4]  # a list 
      y = [5,6,7,8]  # a list
      graph = TGraph(len(x),array(x,'f'),array(y,'f')) # convert lists to arrays
root/python.txt · Last modified: 2014/02/12 16:17 by nchiap