This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
root:python [2009/12/08 09:41] – created viktorh | root:python [2014/02/12 16:17] (current) – [TGraph] nchiap | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | * create a TGraph: | + | ====== Root and python ====== |
+ | |||
+ | ===== TGraph | ||
| | ||
from ROOT import * | from ROOT import * | ||
- | from array import array | + | from numpy import array |
x = [1, | x = [1, | ||
y = [5, | y = [5, | ||
- | graph = TGraph(len(x), | + | graph = TGraph(len(x), |