24#include "ROOT/RFrameTitle.hxx"
41 auto pHist = std::make_shared<RH2D>(xaxis, yaxis);
43 for (
int n=0;
n<10000;
n++)
44 pHist->Fill({gRandom->Gaus(5.,2.), gRandom->Gaus(5.,2.)});
47 auto canvas = RCanvas::Create(
"RH2 with color palette");
49 auto frame = canvas->AddFrame();
52 frame->margins.right = 0.2_normal;
70 auto title = canvas->Draw<RFrameTitle>(
"2D histogram with color palette");
71 title->margin = 0.01_normal;
72 title->height = 0.09_normal;
76 auto draw = canvas->Draw(pHist);
88 stat->fill.style = RAttrFill::kSolid;
90 canvas->SetSize(1000, 700);
#define R__LOAD_LIBRARY(LIBRARY)
RAttrValue< RColor > color
! fill color
Objects used to configure the different axis types.
A color palette draw near the frame.
RAttrFill fill
! fill attributes