It compiles for me using {}
brackets for the Histogram model inside Histo2D
, instead of ()
in python.
void foxwise() {
auto h = ROOT::RDataFrame(100000)
.Define("x", "gRandom->Uniform(0., 5.)")
.Define("y", "gRandom->Uniform(0., 5.)")
.Histo2D({"h", "title;x;y", 100, 0.001, 5, 100, 0., 5}, "x", "y");
auto c = new TCanvas();
h->Draw("colz");
h->SetStats(0);
c->SetLogx();
}
But I get blank canvas. Which I am not sure how to deal with…