%jsroot on TH1F h("myHisto","My Histo;X axis;Y axis",64, -4, 4) TRandom3 rndmGenerator; for (auto i : ROOT::TSeqI(1000)){ auto rndm = rndmGenerator.Gaus(); h.Fill(rndm); } TCanvas c; h.Draw(); c.Draw(); h.SetFillColor(kBlue-10); c.SetGrid(); h.Draw(); c.Dra(); c.Draw();