Wheel zoom limits

Hi - is there a way to set a limit to the max magnification you can zoom in with wheel zoom? Thanks!

Range objects have bounds properties that you can set, e.g. Range1d.bounds

Thanks, I set the bounds to the min and max of the data so that the plot can’t zoom out beyond the range. But how do I use bounds to limit zoom-ins? E.g., for the example time series data on stock price, if I keep scrolling the mouse wheel I can zoom all the way in to micro-seconds. Can I change it so that the max zoom is say the range of a day or a minute, etc.?

1 Like

See min_interval

Perfect, thanks a lot!

1 Like