This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
root:python [2009/12/08 09:57] – viktorh | root:python [2014/02/12 16:17] (current) – [TGraph] nchiap | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Root and python ===== | + | ====== Root and python |
- | === TGraph === | + | ===== 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), |