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++) {
39 pHist1->Fill(
gRandom->Gaus(3., 0.8));
40 pHist2->Fill(
gRandom->Gaus(5., 1.));
41 pHist3->Fill(
gRandom->Gaus(7., 1.2));
49 auto subpads = canvas->Divide(2,2);
56 auto subsubpads = subpads[1][1]->Divide(2,2);
60 subsubpads[0][1]->Draw(pHist3)->line.color =
RColor::kRed;
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.
static std::shared_ptr< RCanvas > Create(const std::string &title)
Create new canvas instance.
static R__DLLEXPORT constexpr RGB_t kRed
static R__DLLEXPORT constexpr RGB_t kGreen
static R__DLLEXPORT constexpr RGB_t kBlue
static std::shared_ptr< RStyle > Parse(const std::string &css_code)
Parse CSS code and returns std::shared_ptr<RStyle> when successful.