☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Autoscaling of axis range with streaming multiline plot with bokeh server

Community Support
Emma
Emma

Hi,
I’m running a bokeh server app with a multiline plot which I want to programatically zoom into.

Currently, I’m doing something like:

plot.y_range.start = range_start

plot.y_range.end = range_end

which seems to do what I want for a static datasource.

The only issue is as the datasouce is updated the figure rescales back to fit in all the data again.

How can I get this to work in the same way a manual zoom into the figure is not rescaled?

Thanks again

Emma

⌁   Link to post
Bryan
Bryan

I can't quite tell from your description, do you not want there to be automatic data scaling ever? If so, you can specify explicit Range1d (as opposed to the default auto-scaling DataRange1d) objects, when you make the plot. For example:

  plot.x_range = Range1d(0, 10)

If you do want auto-scaling at some point or in some way, please explain in a bit more detail.

Bryan

···

On Jun 11, 2016, at 6:31 PM, Emma <takahashi.m85@gmail.com> wrote:

Hi,
I'm running a bokeh server app with a multiline plot which I want to programatically zoom into.
Currently, I'm doing something like:
    plot.y_range.start = range_start
    plot.y_range.end = range_end
which seems to do what I want for a static datasource.
The only issue is as the datasouce is updated the figure rescales back to fit in all the data again.

How can I get this to work in the same way a manual zoom into the figure is not rescaled?

Thanks again
Emma

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d38f80e9-78e1-4be1-92fe-d07d7c541f04%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled