We now create our histogram
In [1]:
TH1F h("h", "My Notebook Histo;x;#", 64, -4, 4)
It is not easy nor efficient to use the Python random number generator in this context. We go for TRandom3
In [2]:
TRandom3 r(1);
for (auto i : ROOT::TSeqI(1000)) h.Fill(r.Gaus());
Time for styling the histogram and use jsroot
In [3]:
%jsroot on
h.SetLineColor(kBlue);
h.SetFillColor(kBlue);
TCanvas c;
h.Draw();
c.Draw();