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