RDataFrame Histograms -- how to set Axis Labels without triggering the event loop?

Hi all,

is there a way to set the axis labels of a histogram created with RDataFrame::Histo[1-3]D without triggering the event loop?

As far as I understand,

auto h = df.Histo1D("var");
h->GetXaxis()->SetTitle("var [unit]");

would trigger the event loop because h is dereferenced.

I read my histogram definitions from a configuration file and it’d be convenient if I could also set the axis labels at that point.



ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

Hi @jndrf,
there is no way to operate on the histogram without triggering the event loop.

The typical workflow is to first book all histograms and then perform all histogram configuration.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.