{ auto cst0 = new TCanvas("cst0","cst0",600,400); auto hs = new THStack("hs","Stacked 1D histograms: option #font[82]{\"nostackb\"}"); auto h1 = new TH1F("h1","h1",10,-4,4); h1->FillRandom("gaus",20000); h1->SetFillColor(kRed); hs->Add(h1); auto h2 = new TH1F("h2","h2",10,-4,4); h2->FillRandom("gaus",15000); h2->SetFillColor(kBlue); hs->Add(h2); auto h3 = new TH1F("h3","h3",10,-4,4); h3->FillRandom("gaus",10000); h3->SetFillColor(kGreen); hs->Add(h3); hs->Draw("nostackb"); hs->GetXaxis()->SetNdivisions(-10); cst0->SetGridx(); }