Autoscaling of axis range with streaming multiline plot with bokeh server

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

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 <[email protected]> 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 [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/d38f80e9-78e1-4be1-92fe-d07d7c541f04%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.