26#include "ROOT/RFrameTitle.hxx"
37 auto pHist = std::make_shared<RH3D>(xaxis, yaxis, zaxis);
39 for (
int n=0;
n<10000;
n++)
40 pHist->Fill({gRandom->Gaus(0.,2.), gRandom->Gaus(0.,2.), gRandom->Gaus(0.,2.)});
43 auto canvas = RCanvas::Create(
"RH3D drawing options");
46 auto subpads = canvas->Divide(2,2);
49 subpads[0][0]->Draw<RFrameTitle>(
"Box(0) default draw option");
50 subpads[0][0]->Draw(pHist)->Box(0).fill =
RAttrFill(RColor::kBlue, RAttrFill::kSolid);
53 subpads[1][0]->Draw<RFrameTitle>(
"Sphere(1) draw option");
54 subpads[1][0]->Draw(pHist)->Sphere(1);
57 subpads[0][1]->Draw<RFrameTitle>(
"Color() draw option");
58 subpads[0][1]->Draw(pHist)->Color();
61 subpads[1][1]->Draw<RFrameTitle>(
"Scatter() draw option");
62 subpads[1][1]->Draw(pHist)->Scatter().fill =
RAttrFill(RColor::kBlack, RAttrFill::kSolid);
64 canvas->SetSize(1000, 700);
Drawing fill attributes for different objects.
Objects used to configure the different axis types.