In [1]:
# Example: displaying a ROOT histogram from Python
from ROOT import gRandom, TCanvas, TH1F


Welcome to JupyROOT 6.10/02

In [2]:
c1 = TCanvas('c1', 'Example', 200, 10, 700, 500)

In [3]:
hpx = TH1F('hpx', 'px', 100, -4 , 4)

In [4]:
for i in xrange(25000):
    px = gRandom.Gaus()
    i = hpx.Fill(px)

In [5]:
hpx.Draw()

In [6]:
c1.Draw()



In [ ]: