39 auto pHist1 = std::make_shared<RH1D>(xaxis);
40 auto pHist2 = std::make_shared<RH1D>(xaxis);
41 auto pHist3 = std::make_shared<RH1D>(xaxis);
43 for (
int n = 0;
n < 1000;
n++) {
50 auto canvas = RCanvas::Create(
"Sub-sub pads example");
54 auto subpads = canvas->Divide(2,2);
56 subpads[0][0]->Draw(pHist1)->line.color = RColor::kRed;
57 subpads[1][0]->Draw(pHist2)->line.color = RColor::kBlue;
58 subpads[0][1]->Draw(pHist3)->line.color = RColor::kGreen;
61 auto subsubpads = subpads[1][1]->Divide(2,2);
63 subsubpads[0][0]->Draw(pHist1)->line.color = RColor::kBlue;
64 subsubpads[1][0]->Draw(pHist2)->line.color = RColor::kGreen;
65 subsubpads[0][1]->Draw(pHist3)->line.color = RColor::kRed;
67 auto style = RStyle::Parse(
73 " x_labels_size: 0.05;"
75 " y_labels_color: green;"
77 canvas->UseStyle(
style);
79 canvas->SetSize(1200, 600);
82 RDirectory::Heap().Add(
"subpads_style",
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...