Bounded zoom

I figured out how to
do:

f = figure()
f.x_range.bounds = 'auto'
f.y_range.bounds = 'auto'

    which is great (and

I would vote for this being the default behavior), but I can’t
figure out how to limit the zoom depth (or maximum
magnification). Is that possible?

TIA! Ian

Ian,

All the range types have a min_interval property:

  http://bokeh.pydata.org/en/latest/docs/reference/models/ranges.html#bokeh.models.ranges.DataRange1d.min_interval
  ranges — Bokeh 3.3.2 Documentation
  ranges — Bokeh 3.3.2 Documentation

Thanks,

Bryan

···

On Nov 4, 2016, at 8:02 AM, Ian Stokes Rees <[email protected]> wrote:

I figured out how to do:

f = figure()
f.x_range.bounds =
'auto'

f.y_range.bounds =
'auto'
which is great (and I would vote for this being the default behavior), but I can’t figure out how to limit the zoom depth (or maximum magnification). Is that possible?

TIA! Ian

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/fd5d822e-b948-5cf3-8d15-513358a50bc3%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.