SetShowProjection highlights the wrong position with logarithmic axis

It’s a common lifetime issue: the histogram goes out of scope at the end of the function. See e.g. I draw a canvas with no picture - #3 by eguiraud . Possible solutions are calling DrawClone instead of Draw or returning the histogram from the function to keep it alive in the outer scope.

1 Like