34 auto pHist1 = std::make_shared<RH1D>(xaxis);
35 auto pHist2 = std::make_shared<RH1D>(xaxis);
36 auto pHist3 = std::make_shared<RH1D>(xaxis);
38 for (
int n = 0;
n < 1000;
n++) {
45 auto canvas = RCanvas::Create(
"Sub-sub pads example");
49 auto subpads = canvas->Divide(2,2);
51 subpads[0][0]->Draw(pHist1)->line.color = RColor::kRed;
52 subpads[1][0]->Draw(pHist2)->line.color = RColor::kBlue;
53 subpads[0][1]->Draw(pHist3)->line.color = RColor::kGreen;
56 auto subsubpads = subpads[1][1]->Divide(2,2);
58 subsubpads[0][0]->Draw(pHist1)->line.color = RColor::kBlue;
59 subsubpads[1][0]->Draw(pHist2)->line.color = RColor::kGreen;
60 subsubpads[0][1]->Draw(pHist3)->line.color = RColor::kRed;
62 auto style = RStyle::Parse(
68 " x_labels_size: 0.05;"
70 " y_labels_color: green;"
72 canvas->UseStyle(
style);
74 canvas->SetSize(1200, 600);
77 canvas->ClearOnClose(
style);
R__EXTERN TRandom * gRandom
Objects used to configure the different axis types.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...