24#include "ROOT/RFrameTitle.hxx"
37 auto pHist = std::make_shared<RH2D>(xaxis, yaxis);
39 for (
int n=0;
n<10000;
n++)
40 pHist->Fill({gRandom->Gaus(5.,2.), gRandom->Gaus(5.,2.)});
43 auto canvas = RCanvas::Create(
"RH2 with color palette");
45 auto frame = canvas->AddFrame();
48 frame->margins.right = 0.2_normal;
66 auto title = canvas->Draw<RFrameTitle>(
"2D histogram with color palette");
67 title->margin = 0.01_normal;
68 title->height = 0.09_normal;
72 auto draw = canvas->Draw(pHist);
84 stat->fill.style = RAttrFill::kSolid;
86 canvas->SetSize(1000, 700);
RAttrValue< RColor > color
! fill color
Objects used to configure the different axis types.
A color palette draw near the frame.
RAttrFill fill
! fill attributes