Dynamically zooming projections with 2D Histogram

Hi

I’m interested in creating a 2D histogram with X and Y projections that updates all plots based on an X/Y/Z axis zooming. The basic code and plot should look something like this example, but when I use the mouse to drag along the axis of the 2D histogram in the canvas to zoom in/out I’d like the X / Y projections to update accordingly with the correct range. In the example code I’ve given, the plots are all independent, so zooming on the 2D histogram doesn’t update the projections.

Any help would be greatly appreciated.

Mark

I have just committed a new version of this example doing what you asked.
Here it is h2proj.C (2.0 KB)

1 Like

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