I’m trying to plot live-data coming in from sensors, but I want to make the x-axis move as new data comes in, to only visualise the last 200 (more or less) points.
I found some ways using ‘cursession()’, but that feature seems depreciated in 0.12.1? Is there any way to make the plot auto-pan?
But I must also mention a serious problem with your code: You are trying to update a Bokeh model object (p.x_range) from outside the main thread. This is NEVER a safe operation. If you want to update things from other threads, you must use the technique described in the user's guide:
On Aug 4, 2016, at 7:56 AM, Wout Van Medegael <[email protected]> wrote:
Hi,
I'm trying to plot live-data coming in from sensors, but I want to make the x-axis move as new data comes in, to only visualise the last 200 (more or less) points.
I found some ways using 'cursession()', but that feature seems depreciated in 0.12.1? Is there any way to make the plot auto-pan?
I included my current code.
But I must also mention a serious problem with your code: You are trying to update a Bokeh model object (p.x_range) from outside the main thread. This is NEVER a safe operation. If you want to update things from other threads, you must use the technique described in the user's guide:
On Aug 4, 2016, at 7:56 AM, Wout Van Medegael <[email protected]> wrote:
Hi,
I'm trying to plot live-data coming in from sensors, but I want to make the x-axis move as new data comes in, to only visualise the last 200 (more or less) points.
I found some ways using 'cursession()', but that feature seems depreciated in 0.12.1? Is there any way to make the plot auto-pan?
I included my current code.