38 auto pHist1 = std::make_shared<RH1D>(xaxis);
39 auto pHist2 = std::make_shared<RH1D>(xaxis);
40 auto pHist3 = std::make_shared<RH1D>(xaxis);
42 for (
int n = 0;
n < 1000;
n++) {
49 auto canvas = RCanvas::Create(
"Sub-sub pads example");
53 auto subpads = canvas->Divide(2,2);
55 subpads[0][0]->Draw(pHist1)->line.color = RColor::kRed;
56 subpads[1][0]->Draw(pHist2)->line.color = RColor::kBlue;
57 subpads[0][1]->Draw(pHist3)->line.color = RColor::kGreen;
60 auto subsubpads = subpads[1][1]->Divide(2,2);
62 subsubpads[0][0]->Draw(pHist1)->line.color = RColor::kBlue;
63 subsubpads[1][0]->Draw(pHist2)->line.color = RColor::kGreen;
64 subsubpads[0][1]->Draw(pHist3)->line.color = RColor::kRed;
66 auto style = RStyle::Parse(
72 " x_labels_size: 0.05;"
74 " y_labels_color: green;"
76 canvas->UseStyle(
style);
78 canvas->SetSize(1200, 600);
81 canvas->ClearOnClose(
style);
#define R__LOAD_LIBRARY(LIBRARY)
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...