void draw()
{
RAxisConfig xaxis("x", 10, 0., 1.);
RAxisConfig yaxis("y", {0., 1., 2., 3., 10.});
auto pHist = std::make_shared<RH2D>(xaxis, yaxis);
pHist->Fill({0.01, 1.02});
pHist->Fill({0.54, 3.02});
pHist->Fill({0.98, 1.02});
pHist->Fill({1.90, 1.02});
pHist->Fill({0.75, -0.02});
RDirectory::Heap().Add("hist", pHist);
auto canvas = RCanvas::Create("Canvas Title");
auto pOpts = canvas->Draw(pHist);
auto pOptsOther = canvas->Draw(other, *pOpts);
canvas->Show();
}
#define R__LOAD_LIBRARY(LIBRARY)
RHist< 2, double, RHistStatContent, RHistStatUncertainty > RH2D
- 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 draw.cxx.