23#include "ROOT/RFrameTitle.hxx"
35 auto pHist = std::make_shared<RH2D>(xaxis, yaxis);
37 for (
int n=0;
n<10000;
n++)
38 pHist->Fill({gRandom->Gaus(5.,2.), gRandom->Gaus(5.,2.)});
41 auto canvas = RCanvas::Create(
"RH2 drawing options");
44 auto subpads = canvas->Divide(2,3);
47 subpads[0][0]->Draw<RFrameTitle>(
"Color() draw option (default)");
48 subpads[0][0]->Draw(pHist);
51 subpads[1][0]->Draw<RFrameTitle>(
"Contour() draw option");
52 subpads[1][0]->Draw(pHist)->Contour();
55 subpads[0][1]->Draw<RFrameTitle>(
"Text() draw option");
56 subpads[0][1]->Draw(pHist)->Text().text.color = RColor::kBlue;
59 subpads[1][1]->Draw<RFrameTitle>(
"Arrow() draw option");
60 auto draw11 = subpads[1][1]->Draw(pHist);
62 draw11->line.color = RColor::kRed;
65 subpads[0][2]->Draw<RFrameTitle>(
"Lego() draw option");
66 subpads[0][2]->Draw(pHist)->Lego(2);
69 subpads[1][2]->Draw<RFrameTitle>(
"Surf() draw option");
70 subpads[1][2]->Draw(pHist)->Surf(2);
72 canvas->SetSize(1000, 700);
Objects used to configure the different axis types.