GUI Signals by TAxis?

Hi rooters,

I am plotting various histograms at the same time.
Users can change axis ranges interactively. Now it would be nice if the axis ranges could be automatically synchronized between the histograms.
Is there a signal/slot mechanism in TAxis (TGAxis?) or THnD that could be used to call a macro that will adapt axis ranges? Somehow I didn’t find any such thing in the reference pages… Is there any other way to “hook in”?



Hi Moritz,

Maybe one of these two signals from TPad (see TPad.h) can help:

virtual void RangeChanged() { Emit("RangeChanged()"); } // *SIGNAL* virtual void RangeAxisChanged() { Emit("RangeAxisChanged()"); } // *SIGNAL*
Cheers, Bertrand.