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