what i am doing is basically hacking the html generated by bokeh output_file().
I managed to change the data dynamically by doing:
datasource = Bokeh.Collections(‘ColumnDataSource’).models[0]
#code to modify datasource
datasource.trigger(‘change’, datasource, {});
This worked.
I tried changing y_range by doing:
yrangesource = Bokeh.Collections(‘Range1d’).models[0]
yrangesource[“attributes”][“end”]=ymax
yrangesource[“attributes”][“start”]=ymin
I never managed to make this work correctly- it ends up just lifting x-axis to ymin positions.
something else I tried, with similar outcome:
view[“views”][“4b4cf297-2307-402d-bcee-9db819fe8094”].pause()
view[“views”][“4b4cf297-2307-402d-bcee-9db819fe8094”][‘y_range’][‘attributes’][“end”]=ymax
view[“views”][“4b4cf297-2307-402d-bcee-9db819fe8094”][‘y_range’][‘attributes’][“start”]=ymin
view[“views”][“4b4cf297-2307-402d-bcee-9db819fe8094”].unpause()
Jian
···
On Friday, February 6, 2015 at 9:06:32 PM UTC-5, Bryan Van de ven wrote:
Can you provide some code for what you are currently trying? It should be a matter of setting the start/end attributes of the relevant range objects on the Plot.
Bryan
On Feb 5, 2015, at 9:21 PM, jzh...@gmail.com wrote:
Hello,
I am developing a standalone webpage for visualization data only using bokehjs (0.7.1). I manage to update the plot with data, but I cannot figure out a way to update my axis ranges correctly ( e.g. after I adjust y range say from [0,1] to [-1,1], x axis appear in its original position i.e. 0, but I want it to be at -1 ). How could I update the ranges correctly?
Thanks!
Jian
–
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 bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/5d4f8c63-d1e8-407e-ada6-5131191efa2e%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.