#include "ROOT/TFitPanel.hxx"
void fitpanel0() {
auto pHist = std::make_shared<Experimental::TH1D>(xaxis);
pHist->Fill(1);
pHist->Fill(2);
pHist->Fill(2);
pHist->Fill(3);
auto panel = std::make_shared<ROOT::Experimental::TFitPanel>("FitPanel Title");
panel->Show();
}
void fitpanel() {
auto xaxis = std::make_shared<Experimental::TAxisConfig>(10, 0., 10.);
auto pHist = std::make_shared<Experimental::TH1D>(*xaxis.get());
pHist->Fill(1);
pHist->Fill(2);
pHist->Fill(2);
pHist->Fill(3);
canvas->Show();
canvas->Update();
auto panel = std::make_shared<ROOT::Experimental::TFitPanel>("FitPanel Title");
panel->UseCanvas(canvas);
canvas->AddPanel(panel);
}
- Date
- 2015-03-22
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Definition in file fitpanel.cxx.