Home | News | Documentation | Download

Default axis ranges in TreeViewer?

Hi rooters,
I’d be curious to know how TreeViewer decides the default ranges of the x-axis when plotting.
(They are typically wider than the data, and they seem to vary.)

Thanks in advance.

It is the same way as TTree::Draw() thanks to THLimitsFinder

2 Likes

If you want to impose your own limits you can use:

auto h = new TH1D("h","h",nbins,xlow,xhigh);
tree->Draw("var>>h");
1 Like

Thanks!
As about imposing limits, I saw that it is also possible to do on the TreeViewer itself.

1 Like