void draw_subpads() {
RAxisConfig xaxis(10, 0., 10.);
auto pHist1 = std::make_shared<RH1D>(xaxis);
auto pHist2 = std::make_shared<RH1D>(xaxis);
auto pHist3 = std::make_shared<RH1D>(xaxis);
pHist1->Fill(1);
pHist1->Fill(2);
pHist1->Fill(2);
pHist1->Fill(3);
pHist2->Fill(5);
pHist2->Fill(6);
pHist2->Fill(6);
pHist2->Fill(7);
pHist3->Fill(4);
pHist3->Fill(5);
pHist3->Fill(5);
pHist3->Fill(6);
auto canvas = RCanvas::Create("Canvas Title");
auto subpads = canvas->Divide(2,2);
auto subsubpads = subpads[1][1]->Divide(2,2);
canvas->Show();
}
- Date
- 2018-03-13
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Sergey Linev
Definition in file draw_subpads.cxx.