21 #include "ROOT/RFitPanel.hxx"
24 using namespace ROOT::Experimental;
28 RAxisConfig xaxis(10, 0., 10.);
30 auto pHist = std::make_shared<RH1D>(xaxis);
38 auto canvas = RCanvas::Create(
"Canvas Title");
44 auto panel = std::make_shared<RFitPanel>(
"FitPanel Title");
46 RDirectory::Heap().Add(
"fitpanel", panel);
47 RDirectory::Heap().Add(
"firsthisto", pHist);
52 panel->AssignCanvas(canvas);
53 panel->AssignHistogram(pHist);
55 canvas->AddPanel(panel);