I’m using Bokeh server with callbacks to modify the plotted data using {renderer.data_source.data=new_data}. I want to customize the plot range at the same time. I’ve tried using {p.x_range.update(start=some_value)} after updating the data but it seems to be racing against auto-range adjustment. After interacting and updating the data sometimes the range is set the way I want, sometimes it is auto set, sometimes one side is set the way I want while other sides are autoset.
Plots created using bokeh.plotting add auto-ranging DataRange1d ranges by default. If you don't want auto ranging, you should create the plot with explicit bounds, e.g:
I'm using Bokeh server with callbacks to modify the plotted data using {renderer.data_source.data=new_data}. I want to customize the plot range at the same time. I've tried using {p.x_range.update(start=some_value)} after updating the data but it seems to be racing against auto-range adjustment. After interacting and updating the data sometimes the range is set the way I want, sometimes it is auto set, sometimes one side is set the way I want while other sides are autoset.