Independant Y-Axis with Independant scrolling

Sep 10, 2009 at 7:29 PM

Is it possible to zoom in/out on each y-axis separatly. i.e Hover over the left axis and use the mouse wheel to zoom in out on that axis only. Hover over the right axis and use the mouse wheel to zoom in and out on that axis only.

 

Thanks,

Kelly

 

P.S. Im working on a repro for that line graph removal bug, but I'm not going slow since I used a work around. 

Editor
Sep 10, 2009 at 7:35 PM

Hi Kelly,

Yes, it is possible to zoom in/out on every axis separately - and certainly in the way you've described. Also you can zoom in or out with right mouse button pressed, moving mouse along the axis.

Best regards,

Mikhail.

Sep 10, 2009 at 7:57 PM
Edited Sep 10, 2009 at 8:41 PM

For me, the left axis is controlling both the left and the right zoom.

UPDATE:

Im not sure if im being completely clear here. When I hover over the left axis and move the mouse wheel, I would like the left axis min and max to change but the right axis max/min to stay constant. So zooming on the left axis should only zoom in on data in the mainplotter. Zooming on the right axis should only zoom in on data in the innerplotter.

Is there a sample I can follow to achieve separate scrolling? Currently I am following the TwoIndependentAxes sample which behaves like mine.

 

Thanks for your time.

Editor
Sep 11, 2009 at 9:12 AM

Hi Kelly,

Currently InjectedPlotter sets a two-way binging on its Viewport.Visible property and its parent plotter's Viewport.Visible, that's why axes are moving together when you are panning or zooming only one of them.

In the next changeset, which will be uploaded to 'Source code' page, there will be a boolean SetViewportBinding property of InjectedPlotter, which wil allow you to control whether to set such two=way binding, or not.

Best regards,

Mikhail.