Page 1 of 1

X Axis zoom limits: is there a way to set them?

Posted: Thu Apr 03, 2014 1:44 pm
by greggorob64
I'm creating my stacked sonagram project, and have a question about mouse-wheel zooming. Is there a way to set limits for the maximum you can zoom in and out when using the moue-wheel?

For instance, in the screenshot below, I do not need to zoom out beyond showing all the data, ever. I've tried setting the axis minimum, but that's not helping. A possible solution i think is: after a zoom (if there's an event somewhere), rescale to max value every time.

Is there a 'correct' way?

Thanks!

Image

Re: X Axis zoom limits: is there a way to set them?

Posted: Thu Apr 03, 2014 5:45 pm
by ArctionPasi
Hello.

The axis ranges can be checked and limited in axis.RangeChanged event handlers, see this post:
http://forum.arction.com/viewtopic.php? ... limit#p116

Does it work for you?

Re: X Axis zoom limits: is there a way to set them?

Posted: Thu Apr 03, 2014 8:45 pm
by greggorob64
Worked great, thanks!