{ TH1F *h1 = new TH1F("h1", "h1", 3, 0, 3); TH1F *h2 = new TH1F("h2", "h2", 3, 0, 3); h1->Fill(1); h1->Fill(2); h1->Fill(3); h2->Fill(1); h2->Fill(3); h1.SetBarWidth(0.4); h1.SetFillColor(4); h1.SetBarOffset(0.1); h2.SetBarWidth(0.4); h2.SetFillColor(3); h2.SetBarOffset(0.5); h1->Draw("bar2"); h2->Draw("bar2 same"); }