I’m currently creating a figure and serving it over bokeh server. I want to be able to interactively update the axis range when I load a new data set. I can accomplish this by changing the x_range.end value (for example), but when I do this, the plot’s ResetTool will reset the axis range to the original value. What do I need to do to accomplish this? ResetTool doesn’t seem to have any default axis range values associated with it, but I’m sure they must be stored somewhere.
Below is a simplified version of what I want to accomplish. If we serve this via bokeh_server, and click on the ‘zoom’ button, I would like the ResetTool to leave the new axis ranges alone.
from bokeh.plotting import figure, curdoc
from bokeh.models import Button
from bokeh.layouts import column
p.x_range.end *= 1.2
p = figure(plot_width=300, plot_height=300,
b = Button(label=‘zoom out’)