My plot uses yLeft and yRight but has a common xBottom. I create two 'overlayed' zoomers like in the bode example. Unlike the bode example the zoomed area is incorrect, i.e., after the zoom the visible rectangle is not what was selected. I believe the reason is that when the first zoomer is done it calls 'rescale()'. The overlayed zoomer does the same which results in any shared axis being rescaled twice. I don't have enough insight to provide a proper patch - test case is attached. My work-around for now is to provide redundant 'top' axis data which are identical to the 'bottom' one. Then one zoomer uses xBottom/yLeft and the other one uses xTop/yRight and it seems to work.
I n the demo app try to set the zoom rectangle to capture two of the peaks...
Thank you for QWT.
Anonymous
Forgot to mention that I discovered with 6.1.4 (bundled with ubuntu 22.4) but also downloaded the 6.3.0 source distribution from sourceforge but it exhibits the same behavior. till.straumann@alumni.tu-berlin.de