In [1]:
from ROOTaaS.iPyROOT import ROOT
ROOT.toCpp()


Welcome to ROOTaas Beta
Notebook is in Cpp mode

In [2]:
h=TH1F("h","jsHistoCpp;X;Y",128,-4,4);
h.FillRandom("gaus")


Out[2]:
0

In [3]:
h.Draw()


Out[3]:
0
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1

In [4]:
toPython()


Notebook is in Python mode
Out[4]:
0

In [6]:
q=ROOT.TH1F("q","jsHisto;X;Y",128,-4,4)
q.SetLineColor(ROOT.kRed)

In [7]:
q.FillRandom("gaus")

In [8]:
q.Draw("same")



In [ ]: