23#include "ROOT/RFrameTitle.hxx"
40 auto pHist = std::make_shared<RH2D>(xaxis, yaxis);
42 for (
int n=0;
n<10000;
n++)
43 pHist->Fill({gRandom->Gaus(5.,2.), gRandom->Gaus(5.,2.)});
46 auto canvas = RCanvas::Create(
"Canvas Title");
48 auto frame = canvas->GetOrCreateFrame();
51 frame->Margins().SetRight(0.2_normal);
53 frame->SetGridX(
true).SetGridY(
false);
55 frame->AttrX().SetZoomMinMax(2.,8.);
57 frame->AttrY().SetZoomMinMax(2.,8.);
59 canvas->Draw<RFrameTitle>(
"2D histogram with color palette");
68 canvas->SetSize(1000, 700);
#define R__LOAD_LIBRARY(LIBRARY)
RAttrFill & SetColor(const RColor &color)
The fill color.
Objects used to configure the different axis types.
A color palette draw near the frame.