It takes two files, which in my case have the same structure and contain results of the same analysis of two different sets of data, and plots a comparison plot of a certain histogram.
Everything works fine expect one feature - the stats in the second stat box do not change when I use TAxis::SetRangeUser to zoom in. Can this be fixed?
In the attachment there are two root files, a bit updated macro and what I see in my 5.34/25 ROOT before and after zooming. Note that the red stat box does not change though it should. I also accidentally noticed that if you zoom using drag-and-drop on the axis (hope you understand what I mean) then it works fine.
Sure! I do that interactively - see screenshot. That’s the idea, get a pair of histograms from two files on one plot and then analyse it using interactive tools: play with the log/linear scale, zoom in/out, look at the mean/rms/integral, etc…
I guess the zoom on axis does something extra. Try also View->Editor… then click on the blue or the red histo and change the range going in the binning tab.