24#include "ROOT/RFrameTitle.hxx"
37 const int nbins = 2000;
42 auto pHist = std::make_shared<RH2D>(xaxis, yaxis);
44 for(
int i=0;i<nbins;++i)
45 for(
int j=0;j<nbins;++j)
46 pHist->Fill({1.*i,1.*j}, i+j);
49 auto canvas = RCanvas::Create(
"Large 2000x2000 RH2 drawing");
51 auto frame = canvas->AddFrame();
58 frame->x.zoomMin = nbins*0.2;
59 frame->x.zoomMax = nbins*0.8;
60 frame->y.zoomMin = nbins*0.2;
61 frame->y.zoomMax = nbins*0.8;
63 canvas->Draw<RFrameTitle>(
TString::Format(
"Large RH2D histogram with %d x %d bins",nbins,nbins).
Data());
65 auto draw = canvas->Draw(pHist);
67 draw->line.color = RColor::kLime;
78 draw->optimize =
true;
82 stat->fill.style = RAttrFill::kSolid;
84 canvas->SetSize(1000, 700);
#define R__LOAD_LIBRARY(LIBRARY)
RAttrValue< RColor > color
! fill color
Objects used to configure the different axis types.
RAttrFill fill
! fill attributes
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.