Hi,
how do I keep the ranges after changing the source of a glyph?
The following code should keep the old range, but the range does change:
from bokeh.layouts import column
from bokeh.models import ColumnDataSource, Button
from bokeh.plotting import figure, curdoc, show
figure = figure()
source = ColumnDataSource(data={"x": [0, 1, 0, 1], "y": [0, 0, 1, 1]})
figure.patch(x="x", y="y", source=source)
button = Button(label="bigger")
def bigger(event):
source.data["x"] = [0, 2, 0, 2]
figure.x_range.end = 1
button.on_click(bigger)
curdoc().add_root(column(figure))
I think setting the range happens before the rerendering of the glyph.
Is there a general way, to set a glyph to not effect any ranges, or a way to set the range manually after updating a source.

