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