Update axis with streaming data

When streaming data to a plot being displayed via bokeh serve, how does one go about updating the y axis? The x axis updates as new data comes in, but the y axis in my graphs end up fixed.

I found this thread from 4 years ago Redirecting to Google Groups but it doesn’t seem to fit the current methodology. (Is cursession still accessible in the library?)

Thanks,

Jordan

Hi,

cursession related to the long-gone first version of the Bokeh server, it no longer exists and is no longer relevant for anything. As long as you have a default DataRange on the y-axis, then it should update automatically just like the x-axis. You can see the y-axis update automatically in this streaming app example:

  https://github.com/bokeh/bokeh/tree/master/examples/app/ohlc

Without seeing any code it's hard to speculate, except to suggest that you are probably setting a fixed range for the y-axis somehow.

Thanks,

Bryan

···

On Jun 1, 2018, at 09:04, [email protected] wrote:

When streaming data to a plot being displayed via bokeh serve, how does one go about updating the y axis? The x axis updates as new data comes in, but the y axis in my graphs end up fixed.

I found this thread from 4 years ago Redirecting to Google Groups but it doesn't seem to fit the current methodology. (Is cursession still accessible in the library?)

Thanks,
Jordan

--
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/e345c161-b784-4037-be45-e3f69f0201cc%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hey Bryan,

I am going to try to write a test case for this so I can open a bug report, but I found that the same code running on 0.12.15 the y axis would update with streaming data, but would not on 0.12.16.

Thanks,

Jordan

···

On Friday, June 1, 2018 at 11:10:34 AM UTC-5, Bryan Van de ven wrote:

Hi,

cursession related to the long-gone first version of the Bokeh server, it no longer exists and is no longer relevant for anything. As long as you have a default DataRange on the y-axis, then it should update automatically just like the x-axis. You can see the y-axis update automatically in this streaming app example:

    [https://github.com/bokeh/bokeh/tree/master/examples/app/ohlc](https://github.com/bokeh/bokeh/tree/master/examples/app/ohlc)

Without seeing any code it’s hard to speculate, except to suggest that you are probably setting a fixed range for the y-axis somehow.

Thanks,

Bryan

On Jun 1, 2018, at 09:04, [email protected] wrote:

When streaming data to a plot being displayed via bokeh serve, how does one go about updating the y axis? The x axis updates as new data comes in, but the y axis in my graphs end up fixed.

I found this thread from 4 years ago https://groups.google.com/a/continuum.io/forum/#!topic/bokeh/j_xKiwth5Xw but it doesn’t seem to fit the current methodology. (Is cursession still accessible in the library?)

Thanks,

Jordan


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/e345c161-b784-4037-be45-e3f69f0201cc%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.